{"name":"twing","version":"0.1.3","author":{"name":"Eric MORAND","email":"eric.morand@gmail,com"},"_id":"twing@0.1.3","maintainers":[{"name":"ericmorand","email":"eric.morand+npm@gmail.com"}],"homepage":"https://github.com/ericmorand/twing","bugs":{"url":"https://github.com/ericmorand/twing/issues"},"dist":{"shasum":"56a6137cd8d895da0138582348f0e1f0262af2e2","tarball":"http://registry-npm.ywwl.com/twing/download/twing-0.1.3.tgz","integrity":"sha512-yprow6bOUBo0CW3DadnH1QwIg4S51XtUtTxKrJ20Jr3uB2jfpMJ/Q+WKAKV5321e9Q5Nufcg+TcADEPPFjhYKA==","signatures":[{"sig":"MEUCIDSdwkXMSUr44V+AMyJbQafxYbYs4dSMVhzMmyUWN6fSAiEAwBfyKPrk1vl7PMhHvxmDbpbfHmbFCSIfmwa9bc8F0qo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"size":460548,"noattachment":false,"key":"/twing/-/twing-0.1.3.tgz"},"main":"twig.js","_from":".","_shasum":"56a6137cd8d895da0138582348f0e1f0262af2e2","engines":{"node":">=4.0"},"gitHead":"6c21da9827221d8a47533e6d4063c4755594087c","scripts":{"test":"npm run build && mocha -r should","build":"npm run build-node && npm run build-browser","build-node":"webpack","postversion":"git push origin master --tags","build-browser":"WEBPACK_ENV=browser webpack"},"_npmUser":{"name":"ericmorand","email":"eric.morand+npm@gmail.com"},"licenses":[{"url":"https://raw.github.com/twigjs/twig.js/master/LICENSE","type":"BSD-2-Clause"}],"repository":{"url":"git://github.com/ericmorand/twing.git","type":"git"},"_npmVersion":"3.10.10","description":"JS port of the Twig templating language.","directories":{},"_nodeVersion":"6.11.3","dependencies":{"walk":"2.3.x","locutus":"^2.0.5","minimatch":"3.0.x","source-map":"^0.6.1"},"devDependencies":{"chai":"^3.5.0","mocha":"3.1.x","sinon":"^1.17.6","should":"11.1.x","tokenizer":"1.1.x","sinon-chai":"^2.8.0","require-uncached":"^1.0.3"},"_npmOperationalInternal":{"tmp":"tmp/twing-0.1.3.tgz_1507325542067_0.15708570601418614","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":1507325544866,"_cnpm_publish_time":1507325544866,"dist-tags":{"2.x-latest":"2.3.7","latest":"7.3.1","next":"4.0.0-beta.1"}}