{"name":"twing","version":"0.1.0","author":{"name":"Eric MORAND","email":"eric.morand@gmail,com"},"_id":"twing@0.1.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":"e43121d896c229c79f822c8d08830d80052fa1f4","tarball":"http://registry-npm.ywwl.com/twing/download/twing-0.1.0.tgz","integrity":"sha512-9f8AzejRDpaqTFrUYuvsmjGmTU0xNUKdTks5GxdDOf/JXsv51KnYQEyauk9qRxY/Hjc/VfhNaPLQCdQaQiTqTw==","signatures":[{"sig":"MEQCIAQ5LDLxMbwHhxn8ZVYomibLZ5URhCL4LsptKJneaN9wAiAl5pcUivxF/22PF20gV7sJenhD9cDMd83mTXWI78Zqug==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"size":459724,"noattachment":false,"key":"/twing/-/twing-0.1.0.tgz"},"main":"index.js","_from":".","_shasum":"e43121d896c229c79f822c8d08830d80052fa1f4","engines":{"node":">=4.0"},"gitHead":"a5472887c25d59dc31287e04f6a3e6135c09e43e","scripts":{"test":"npm run build && mocha -r should"},"_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.0.tgz_1507214578507_0.9394152900204062","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":1507214580022,"_cnpm_publish_time":1507214580022,"dist-tags":{"2.x-latest":"2.3.7","latest":"7.3.1","next":"4.0.0-beta.1"}}