{"name":"twing","version":"7.1.0-beta.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.1.0-beta.2","maintainers":[{"name":"ericmorand","email":"eric.morand+npm@gmail.com"}],"homepage":"https://twing.nightlycommit.com","bugs":{"url":"https://gitlab.com/nightlycommit/twing/-/issues"},"dist":{"shasum":"dc19b5bce296ff2019183326c20c52da266733cd","tarball":"http://registry-npm.ywwl.com/twing/download/twing-7.1.0-beta.2.tgz","fileCount":576,"integrity":"sha512-GbQo2ddXC/x+2sNJcyR1uQiKzpBToE6SsR788bW3Bl37AxMKMmMUEFaJBeW7wUA19AMk5Ux8ArozLNFSkM91uA==","signatures":[{"sig":"MEQCIFQNJ+HPTSXvXafp56ieFbplm+GoxuV8RTNQOY/04nBEAiAh9M/Q2tjOwlp77nIXG5ZJcWSnk+LdQ6ssFKpNcdZJ2w==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1651719,"size":438335,"noattachment":false,"key":"/twing/-/twing-7.1.0-beta.2.tgz"},"main":"dist/cjs/lib.js","types":"dist/types/lib.d.ts","engines":{"node":">=6.0.0"},"gitHead":"00a01c7127f1423fb99b79cc1b3372af90d80f82","_npmUser":{"name":"ericmorand","email":"eric.morand+npm@gmail.com"},"jsdelivr":"dist/lib.min.js","repository":{"url":"git+https://gitlab.com/nightlycommit/twing.git","type":"git"},"_npmVersion":"9.6.3","description":"First-class Twig engine for Node.js","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","utf8-binary-cutter":"^0.9.2"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/twing_7.1.0-beta.2_1722072840491_0.5321636485973331","host":"s3://npm-registry-packages"},"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":1722072840716,"_cnpm_publish_time":1722072840716,"dist-tags":{"2.x-latest":"2.3.7","latest":"7.3.1","next":"4.0.0-beta.1"}}