{"name":"twing","version":"7.2.0","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.0","maintainers":[{"name":"ericmorand","email":"eric.morand+npm@gmail.com"}],"homepage":"http://twing.nightlycommit.com","bugs":{"url":"https://gitlab.com/nightlycommit/twing/-/issues"},"dist":{"shasum":"6f6912bf4547b3885302677c67fa712720a7c51f","tarball":"http://registry-npm.ywwl.com/twing/download/twing-7.2.0.tgz","fileCount":575,"integrity":"sha512-XQLmaB0Qec7zxs3VN95zJsxUY0VVfEI/Bhq3llh94OxhRwyUKNr5F3Fpt9OcXdWETxrXp5EQan3QSaCxqDfOjg==","signatures":[{"sig":"MEUCIQDarULUhbXf6lFP/7cdmRsY+892E5eGPokkVS9K/c7cRwIgL2n+q/dWNVrAS9z4Q97maQ3QN8X5zuQCGobMaPVAHBs=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":746711,"size":130255,"noattachment":false,"key":"/twing/-/twing-7.2.0.tgz"},"main":"cjs/lib.js","types":"types/lib.d.ts","engines":{"node":">=16.0.0"},"gitHead":"9f7b2ba7fac0379236d8830283fbe9fa7de5b922","_npmUser":{"name":"ericmorand","actor":{"name":"ericmorand","type":"user","email":"eric.morand+npm@gmail.com"},"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":{},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/twing_7.2.0_1750404685582_0.7056807673147538","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":1750404685774,"_cnpm_publish_time":1750404685774,"dist-tags":{"2.x-latest":"2.3.7","latest":"7.3.1","next":"4.0.0-beta.1"}}