{"name":"twing","version":"2.3.4","keywords":["browser","compiler","template","twig","twig-engine","typescript"],"author":{"name":"Eric MORAND","email":"eric.morand@gmail.com"},"license":"BSD-2-Clause","_id":"twing@2.3.4","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":"37efb55b6e0e73330c279846daab1a47a21870b9","tarball":"http://registry-npm.ywwl.com/twing/download/twing-2.3.4.tgz","fileCount":445,"integrity":"sha512-wkCmLbd6h2aWrzwZGn9XinwLX5vK70mDWgU4VovdDzcG0dH4YaRKYw35zDBKEA1K2DHmrvyIVbgI6M9HzukTcQ==","signatures":[{"sig":"MEUCIECHu92qPhL8fhbSzLAFlJe+dNFyZIAEZPfS0v2HIIrbAiEAvZsae4FMBiFm5HqTjS5vM1QkEuFs66IRjKyf6Mz3jbo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1898233,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdVWhPCRA9TVsSAnZWagAAviAQAJCzAJesf59LdgP00IuM\nhL+I41lEIterkEW9hBRDRqbnHrKgxwX/v7xdYZ0WYb4h5XxDBteKfrYK93nA\nYxeAocsDRdpSbhj634hSsKnQvh/Q1fKc+798IWKdmluVBIkTPcyFewtPaLF0\niBYMvphy0gYPP3s7HaWUt5Qo4p3IeiITSgm+1wPeY4I+pGqB35k9nCEjR2sf\nQoAHTBGXnNkRGUZ6r0bf1x3y4uGCVSO73NqOSd/MLsKQwjf1lCJsfeUk8rw+\n8hubfFPacfqrToWg08XtivKlMeyNZN8OADc5FgTB0hm7Eex5deiNQwfufI9m\nECO/hCauu6B4RP88OawkJPAyg1ASmnKR2Gi27uh7+FPqOxWmwdfxphiMTapI\nh0Mp/nqAVb+FALoVdhrz1kwwtwMIfBjxrHU2RrLFoCo/dx+b55yEZX86m/27\n5NImtaOSqWxbPVaGGEmLi1A5C5Tqjji8Anno/XZUo8CBZBK2/+0wsNavIXcy\nsmue/L0UCgVXehsqPghsdXrga3MPUgeUHjoa9XlOwpCGuzKrOdpPxSSmRSGd\nG3J9maDGLGCFymSw0AcOVAYKezdtgMcvv/Z2Jo59KsVtxg7WrBGpbzf1AAtM\nunQNMrzzAMGdVqslxEvEI7m5CrINfe0vSm0oqD0YSxCjrroKu99GjZXBzEUZ\nyIqg\r\n=zDP2\r\n-----END PGP SIGNATURE-----\r\n","size":518954,"noattachment":false,"key":"/twing/-/twing-2.3.4.tgz"},"main":"index.js","types":"index.d.ts","browser":"browser.js","engines":{"node":">=6.0.0"},"gitHead":"dba7806b5ea16b5ec57c54fddd65eeb6e704e726","scripts":{"docs":"cd docs && bundle exec jekyll serve","test":"npm run fastest:all","build":"tsc --project .","clean":"rimraf build && rimraf test/tests/types/build","cover":"nyc npm t","bundle":"browserify build/browser.js -g uglifyify -s Twing -o build/dist/lib.min.js","prepack":"npm run build -- --sourceMap false && npm run bundle && mv build/* .","pretest":"npm run build","coverage":"nyc report --reporter=text-lcov | coveralls","postpack":"rimraf lib dist browser.* index.*","prebuild":"npm run clean","precover":"rimraf coverage .nyc_output","postbuild":"replace-in-file '__VERSION__' $npm_package_version build/**/*","test:docs":"cd docs && bundle exec jekyll build","test:types":"tsc --project test/tests/types","fastest:all":"tape 'test/tests/**/test.js' | tap-bail | tap-spec","docs:install":"cd docs && bundle install --path vendor/bundle","fastest:unit":"tape 'test/tests/unit/**/test.js' | tap-bail | tap-spec","test:browser":"npm run fastest:integration:browser","pretest:types":"npm run pretest && rimraf test/tests/types/build","pretest:browser":"npm run pretest","fastest:integration":"tape test/tests/integration/**/test.js | tap-bail | tap-spec","fastest:integration:browser":"node test/tests/integration/browser.js | browserify - --basedir ./test -t [ stringify --extensions [.html .twig] ] | tape-run --render='tap-spec'"},"_npmUser":{"name":"ericmorand","email":"eric.morand+npm@gmail.com"},"repository":{"url":"git://github.com/ericmorand/twing.git","type":"git"},"_npmVersion":"6.7.0","description":"First-class Twig engine for Node.js","directories":{},"_nodeVersion":"11.15.0","dependencies":{"pad":"^2.0.3","tmp":"0.0.33","luxon":"^1.4.1","merge":"^1.2.1","runes":"^0.4.3","esrever":"^0.2.0","locutus":"^2.0.9","fs-extra":"^5.0.0","isobject":"^3.0.1","camelcase":"^4.1.0","crypto-js":"^3.1.9-1","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","regex-parser":"^2.2.8","var-validator":"0.0.3","parse-function":"^5.2.3","is-plain-object":"^2.0.4","htmlspecialchars":"^1.0.5","utf8-binary-cutter":"^0.9.2"},"_hasShrinkwrap":false,"devDependencies":{"nyc":"^13.3.0","tape":"^4.9.0","sinon":"^6.3.4","rimraf":"^2.6.2","tap-bail":"^1.0.0","tap-spec":"^5.0.0","tape-run":"^6.0.0","coveralls":"^3.0.0","fs-finder":"^1.8.1","node-hook":"^1.0.0","stringify":"^5.2.0","uglifyify":"^5.0.1","@types/tmp":"0.0.33","browserify":"^16.2.3","typescript":"^3.1.3","@types/node":"^9.3.0","@types/luxon":"^1.4.0","@types/sinon":"^4.3.0","replace-in-file":"^3.4.2"},"_npmOperationalInternal":{"tmp":"tmp/twing_2.3.4_1565878350865_0.0849875729667191","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":1565878351049,"_cnpm_publish_time":1565878351049,"dist-tags":{"2.x-latest":"2.3.7","latest":"7.3.1","next":"4.0.0-beta.1"}}