{"name":"twing","version":"0.2.0","author":{"name":"Eric MORAND","email":"eric.morand@gmail,com"},"_id":"twing@0.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"},"nyc":{"all":true,"lines":100,"include":"src","require":["ts-node/register/type-check"],"branches":100,"reporter":["text-summary","html"],"extension":[".ts"],"functions":100},"dist":{"shasum":"e7c6f99b9994ea079229143fd505e6da4b53b357","tarball":"http://registry-npm.ywwl.com/twing/download/twing-0.2.0.tgz","integrity":"sha512-q8AXIdOzf82+Sqe24rMqqWjUUdLO9RU3HbvIqm+qxrdp+p89OGzSyJRJhPneX5EMSFnz9S/ERh56xdGKMMQ0UA==","signatures":[{"sig":"MEQCIGIQbw3wLuCjsCApvsPOH7vg7u/kJzcrZ4J/ICvZETdMAiAlL5oVoKXDEzkVPwDehdcL4xQQEamJ6+/2WGM+ivdTXQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"size":131970,"noattachment":false,"key":"/twing/-/twing-0.2.0.tgz"},"main":"build/node/twing.js","_from":".","_shasum":"e7c6f99b9994ea079229143fd505e6da4b53b357","engines":{"node":">=6.0"},"gitHead":"f192211a9f21515f3e5e003dc649b128e331cbb1","scripts":{"test":"TS_NODE_CACHE=0 npm run fastest","build":"tsc","cover":"nyc npm t","fastest":"tape -r ts-node/register/type-check 'test/tests/**/*.ts' | tap-mocha-reporter spec","coverage":"nyc report --reporter=text-lcov | coveralls","fastest2":"tape -r ts-node/register/type-check 'test/tests/integration-tests.ts' | tap-mocha-reporter spec","prepublish":"npm run build && node tasks/build.js","postversion":"git push origin master --tags"},"_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":"TypeScript port of the Twig templating language.","directories":{},"_nodeVersion":"6.12.3","dependencies":{"pad":"^2.0.3","tmp":"0.0.33","luxon":"^0.3.1","merge":"^1.2.0","moment":"^2.20.1","sha.js":"^2.4.9","hash.js":"^1.1.3","locutus":"^2.0.9","fs-extra":"^5.0.0","camelcase":"^4.1.0","is-number":"^4.0.0","capitalize":"^1.0.0","iconv-lite":"^0.4.19","is-integer":"^1.0.7","snake-case":"^2.1.0","levenshtein":"^1.0.5","object-hash":"^1.2.0","regex-parser":"^2.2.8","parse-function":"^5.0.23","secure-filters":"^1.1.0","moment-timezone":"^0.5.14","htmlspecialchars":"^1.0.5","dateformat-converter":"^2.0.1"},"devDependencies":{"nyc":"^11.4.1","tap":"^11.0.1","tape":"^4.8.0","rollup":"^0.54.1","tap-nyc":"^1.0.3","ts-node":"^4.1.0","fs-extra":"^5.0.0","tap-diff":"^0.1.1","tap-spec":"^4.1.1","coveralls":"^3.0.0","fs-finder":"^1.8.1","node-hook":"^1.0.0","tokenizer":"1.1.x","typescript":"^2.6.2","@types/node":"^9.3.0","@types/tape":"^4.2.30","@types/luxon":"^0.2.2","tap-mocha-reporter":"^3.0.6","rollup-plugin-multi-entry":"^2.0.2","rollup-plugin-typescript2":"^0.10.0"},"_npmOperationalInternal":{"tmp":"tmp/twing-0.2.0.tgz_1517217375228_0.061704611172899604","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":1517217376334,"_cnpm_publish_time":1517217376334,"dist-tags":{"2.x-latest":"2.3.7","latest":"7.3.1","next":"4.0.0-beta.1"}}