{"name":"twing","version":"7.2.0-beta.1","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-beta.1","maintainers":[{"name":"ericmorand","email":"eric.morand+npm@gmail.com"}],"homepage":"http://twing.nightlycommit.com","bugs":{"url":"https://gitlab.com/nightlycommit/twing/-/issues"},"dist":{"shasum":"b61a85de0ee0435443d4d53a00323c6209e86dd0","tarball":"http://registry-npm.ywwl.com/twing/download/twing-7.2.0-beta.1.tgz","fileCount":575,"integrity":"sha512-Cuf3t7OIHa54SnzB2+6nfvAvYQgEw+5Y9M9UgSO4Own1mYgXWK612HzLRs0U/djXf5BHZicbwh42N73bKHWuKw==","signatures":[{"sig":"MEQCIDvULkD86EVkGRX9xiIy8ZAf40Lpxytwi7LHT6x46OXBAiAzQ2pj4MrUCK+R57XKsie6FHkdQGj11ePXBw+STmcVHA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":745546,"size":130133,"noattachment":false,"key":"/twing/-/twing-7.2.0-beta.1.tgz"},"main":"cjs/lib.js","types":"types/lib.d.ts","engines":{"node":">=16.0.0"},"gitHead":"2afac284834bd1e34a0128700482e87ec6e6aff4","_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-beta.1_1750342874698_0.7981927567791378","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":1750342874887,"_cnpm_publish_time":1750342874887,"dist-tags":{"2.x-latest":"2.3.7","latest":"7.3.1","next":"4.0.0-beta.1"}}