{"name":"twing","version":"1.2.0","keywords":["compiler","template","twig","twig-engine","typescript"],"author":{"name":"Eric MORAND","email":"eric.morand@gmail.com"},"_id":"twing@1.2.0","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":"54c6f18cd1664df96a9035afeb52a9e237209131","tarball":"http://registry-npm.ywwl.com/twing/download/twing-1.2.0.tgz","fileCount":424,"integrity":"sha512-BpW9vPl2r4tpfhTsUleKYG469r8dTWUii/gg+dNF/WczffORMT35PBN5HdUCyOSoirktMHRUAYwZBS1PAn3nJg==","signatures":[{"sig":"MEYCIQCIOzfKeAO6gLGh6Uzwu08Q9VHOD9ExlHoUFNxdwa/7PgIhAMrrJNDRPlFANSgdutTuMHLeA4sksRbKfY+NzJ0YLSQZ","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":699339,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbFacfCRA9TVsSAnZWagAANksP/0TX3ZdfQzgiHuoitB/Z\noiFx/E1dewBoKdO95yVYAYKmD00KxqGgdjhNp7uqS2BGTJs18f+mF15/1RUU\n+wCc7+7ZP2lk9vfd/JAC+bamOKHVcGjhkatuW4BtQx0oN3Cc0d+SPqHe6qUN\nIjzs7SYYoBLAB6P9GWZthrBvbpJAxGtNlv8SvkIJ8w85aNFF6IEs5YM1Vmdj\nMJXeQpdl9uE7dLSmc9Vtj1y7R4urmOgVpzWzRljpkr0BjLEKPatDPiOFu5V9\nlgX/tZ57EF5bc0sw4nP1vllX9NIu8smY+HJDU5GHJ76PKRCFAXIbdDDbUPx0\nCYoWuIWYGqc+dQyn+YkGE/L+0fDUM7K/i9lUE21IGLORrNsKhpSMhBqz3h8S\nHkFe2j7H/SYhUnOl/SYmto8AuKx9anFis1AJYoDtD4PsCBHoF0t+WQwzvM2T\nNvqfmMaZNi+hLcV2r9s6X/ByeUCUEwLH3fgy0JE9xYzh9HeDkeAbQcmHOGPB\nLbUBFV5iTZEs3FfVhDEOY2hpz+NY3/aUoOHMsoozETyCtqMpekcr93x6FWl2\nUfdQqzLrXyjOM7c1t5C8NVp2WKM0g3W0w2yLcVsutOz0mfg9hV3PkhrzCgmh\nBPlKpZY+dv11+Z9e7iU4uUP4hjrM+KYms7pKHnKCtA1Q9S86NE4pQiy/PKGY\nF/0X\r\n=Apxg\r\n-----END PGP SIGNATURE-----\r\n","size":123401,"noattachment":false,"key":"/twing/-/twing-1.2.0.tgz"},"main":"lib/twing.js","engines":{"node":">=6.0.0"},"gitHead":"b925aa6a5a92be5e176ed8a9c1976aa7af8df8fe","scripts":{"lib":"tsc --project .","docs":"cd docs && bundle exec jekyll serve","test":"npm run fastest:all","clean":"node tasks/clean.js","cover":"nyc npm t","prelib":"npm run clean","pretest":"npm run lib","coverage":"nyc report --reporter=text-lcov | coveralls","benchmark":"node benchmark/index.js","prepublish":"npm run lib -- --sourceMap false","fastest:all":"tape 'test/tests/**/*.js' | tap-mocha-reporter spec","docs:install":"cd docs && bundle install --path vendor/bundle","fastest:unit":"tape 'test/tests/unit/**/*.js' | tap-mocha-reporter spec","fastest:integration":"tape 'test/tests/integration/*.js' | tap-mocha-reporter spec"},"_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":"5.6.0","description":"First-class Twig engine for Node.js","directories":{},"_nodeVersion":"9.8.0","dependencies":{"pad":"^2.0.3","tmp":"0.0.33","eval":"^0.1.2","luxon":"^1.0.0","merge":"^1.2.0","runes":"^0.4.3","moment":"^2.20.1","esrever":"^0.2.0","locutus":"^2.0.9","fs-extra":"^5.0.0","isobject":"^3.0.1","camelcase":"^4.1.0","is-number":"^5.0.0","capitalize":"^1.0.0","iconv-lite":"^0.4.19","is-integer":"^1.0.7","snake-case":"^2.1.0","source-map":"^0.6.1","levenshtein":"^1.0.5","object-hash":"^1.2.0","stack-trace":"0.0.10","regex-parser":"^2.2.8","var-validator":"0.0.3","parse-function":"^5.2.3","is-plain-object":"^2.0.4","moment-timezone":"^0.5.14","htmlspecialchars":"^1.0.5","utf8-binary-cutter":"^0.9.1","dateformat-converter":"^2.0.1"},"_hasShrinkwrap":false,"devDependencies":{"nyc":"^11.5.0","tap":"^11.0.1","tape":"^4.9.0","twig":"^1.10.5","sinon":"^4.3.0","fs-extra":"^5.0.0","coveralls":"^3.0.0","fs-finder":"^1.8.1","node-hook":"^1.0.0","@types/tmp":"0.0.33","typescript":"^2.8.1","@types/node":"^9.3.0","@types/luxon":"^0.5.0","@types/sinon":"^4.3.0","module-alias":"^2.0.3","@types/stack-trace":"0.0.29","tap-mocha-reporter":"^3.0.6"},"_npmOperationalInternal":{"tmp":"tmp/twing_1.2.0_1528145694425_0.22662272492946944","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":1528145694494,"_cnpm_publish_time":1528145694494,"dist-tags":{"2.x-latest":"2.3.7","latest":"7.3.1","next":"4.0.0-beta.1"}}