{"name":"twing","version":"7.2.2","keywords":["browser","compiler","template","twig","twig-engine","typescript"],"author":{"name":"Eric MORAND","email":"eric.morand@gmail.com"},"license":"BSD-2-Clause","_id":"twing@7.2.2","maintainers":[{"name":"ericmorand","email":"eric.morand+npm@gmail.com"}],"homepage":"http://twing.nightlycommit.com","bugs":{"url":"https://gitlab.com/nightlycommit/twing/-/issues"},"dist":{"shasum":"3537095bb0dea5c0aa7fe09d0c326c6b6754c1d7","tarball":"http://registry-npm.ywwl.com/twing/download/twing-7.2.2.tgz","fileCount":575,"integrity":"sha512-k4MhaUPu9kDfpBYIGopGGQihua6fDd5lzBbJTyuqdzuAbGrokOl5y0zY3iRuhFXl40ErPC2CicQrCx1YeVFnZQ==","signatures":[{"sig":"MEYCIQDOaX4sqx40/djeCtPi9ez0JbJuLWgY2liF+jeDODgYFgIhAPqDuxjIwmA5Po9EntNiMhq162xumU8NwBtokptIOHNM","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":747924,"size":130538,"noattachment":false,"key":"/twing/-/twing-7.2.2.tgz"},"main":"cjs/lib.js","types":"types/lib.d.ts","engines":{"node":">=16.0.0"},"gitHead":"8951189abd7386b1855509969a8a531b33248371","_npmUser":{"name":"ericmorand","email":"eric.morand+npm@gmail.com"},"repository":{"url":"git+https://gitlab.com/nightlycommit/twing.git","type":"git"},"_npmVersion":"9.6.3","description":"First-class Twig engine for the JavaScript ecosystem","directories":{},"_nodeVersion":"19.9.0","dependencies":{"pad":"^2.0.3","luxon":"^1.19.3","runes":"^0.4.3","esrever":"^0.2.0","locutus":"^2.0.31","isobject":"^3.0.1","capitalize":"^1.0.0","iconv-lite":"^0.6.3","snake-case":"^2.1.0","source-map":"^0.6.1","twig-lexer":"^0.9.0","create-hash":"^1.2.0","levenshtein":"^1.0.5","regex-parser":"^2.2.8","is-plain-object":"^2.0.4","htmlspecialchars":"^1.0.5"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/twing_7.2.2_1760969728935_0.901449614115476","host":"s3://npm-registry-packages-npm-production"},"readme":"# Twing\n[![NPM version][npm-image]][npm-url] [![Build Status][build-image]][build-url] [![Coverage percentage][coveralls-image]][coveralls-url] [![Donate][donate-image]][donate-url]\n\nFirst-class JavaScript Twig compiler\n\n## Prerequisites\n\nTwing needs at least **node.js 16.0.0** to run.\n\n## Installation\n\nThe recommended way to install Twing is via npm:\n\n```shell\nnpm install twing --save\n```\n\n## Documentation\n\nSee [the Twing website](https://twing.nightlycommit.com) for documentation.\n\n## Basic API Usage\n\n```typescript\nimport {createEnvironment, createArrayLoader} from \"twing\";\n\nconst loader = createArrayLoader({\n    'index.twig': 'Everybody loves {{ name }}!'\n});\n\nconst environment = createEnvironment(loader);\n\nenvironment.render('index.twig', {name: 'Twing'}).then((output) => {\n    // output contains \"Everybody loves Twing!\"\n});\n```\n\n## Script tag\n\nUse [cdnjs](https://cdnjs.com/libraries/twing) to include Twing in your HTML document.\n\nOnce loaded by the browser, Twing is available under the global `Twing` variable.\n\n## Related packages\n\n* [gulp-twing](https://www.npmjs.com/package/gulp-twing): Compile Twig templates with gulp. Build upon Twing.\n* [twing-loader](https://www.npmjs.com/package/twing-loader): Webpack loader that compiles Twig templates using Twing.\n\n## License\n\nCopyright © 2018 [Eric MORAND](https://github.com/ericmorand). Released under the [2-Clause BSD License](https://github.com/ericmorand/twing/blob/master/LICENSE).\n\n[npm-image]: https://badge.fury.io/js/twing.svg\n[npm-url]: https://npmjs.org/package/twing\n[build-image]: https://gitlab.com/nightlycommit/twing/badges/main/pipeline.svg\n[build-url]: https://gitlab.com/nightlycommit/twing/-/pipelines\n[coveralls-image]: https://coveralls.io/repos/gitlab/nightlycommit/twing/badge.svg\n[coveralls-url]: https://coveralls.io/gitlab/nightlycommit/twing\n[donate-image]: https://img.shields.io/badge/Donate-PayPal-green.svg\n[donate-url]: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=7YZU3L2JL2KJA\n","publish_time":1760969729209,"_cnpm_publish_time":1760969729209,"dist-tags":{"2.x-latest":"2.3.7","latest":"7.3.1","next":"4.0.0-beta.1"}}