{"name":"expand-template","version":"2.0.2","description":"Expand placeholders in a template string","main":"index.js","repository":{"type":"git","url":"git+https://github.com/ralphtheninja/expand-template.git"},"homepage":"https://github.com/ralphtheninja/expand-template","scripts":{"test":"tape test.js && standard"},"keywords":["template","expand","replace"],"author":{"name":"LM","email":"ralphtheninja@riseup.net"},"license":"(MIT or WTFPL)","dependencies":{},"devDependencies":{"standard":"^12.0.0","tape":"^4.2.2"},"engines":{"node":">=6"},"gitHead":"08b904067ddbaeb27f96cc9a947dcc0acc9ec82b","bugs":{"url":"https://github.com/ralphtheninja/expand-template/issues"},"_id":"expand-template@2.0.2","_npmVersion":"6.4.1","_nodeVersion":"10.13.0","_npmUser":{"name":"ralphtheninja","email":"ralphtheninja@riseup.net"},"dist":{"integrity":"sha512-u3v2lK7GQFqmnOccEdelQg0t0OA11/sNl2EAptMG9fnjGE1p9KVq2F71qYS/tyl59fK3TjpLMWlo2SQtOTloBg==","shasum":"a9ab60e95a7cf497e9d948d3f829139be1f02f46","tarball":"http://registry-npm.ywwl.com/expand-template/download/expand-template-2.0.2.tgz","fileCount":6,"unpackedSize":5410,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb/a06CRA9TVsSAnZWagAAl3AP/0KGh98cW3ABMgAITp3b\nt/ydPZLuYXEzwgzAuWKHymXKBKl8IF3NYQkshzqScRp5isyh+lCYA05Ro7Hx\nNLTdBgFjnq2N++YEIV/uUCHlu4ikDrs0eVPBODc76GbTsqkgtPsTLwZ9Dbk5\ns958Aev+DSyydVAh8ZD1LC5Z0YKcB6fQcfpxhwUw60b0iIpg5xEbVc2wCQii\nbgEEfjgApk3wOLtf1k6Vc2tlkA7Ott/Z5xZlqLOPzJ2wWOiTepXTH8G+7bfk\n1wrHd/xfCd+Lr28710EUQuJo7aGAtjQm5I/9SHDCWE4cZgqlRSQpZvQ5sECl\numws9nul9pAIxE61Iz7wLzuQq9PIat11jiiap1b5kDryE9Gq1Iwr2qRfsXW3\nG/CLi6HaKTieDeW019wlKXRuep5JikCGdkJbRhXvFE/baP4820NTyfSV27er\nRtb1HRYymAfbXcfsoWShoR6BwRYy+J9XnlBIlRZHG5F0rmsB1M8nxw4R2H1K\nWqc8Jidphlfpu9Fh158GuUQOKC3fiN1gm2NeADmXK854mGKyu1RBz3+4rhK3\nySZHDgsgV7cZQ5mAMSwSBhxvrY5heMhR20fp9rLdFKUKEq0jTKMR8c/kS+Js\nLcfHiFr3C6sO8bXAlBWIXW9ohio8ykjB9BxTCtdGnQw3woR7mmFcgIY8Stqh\n82Uq\r\n=dp0P\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDmOD+6NLahIFMLbv+ZlYKh8B8k6l9oBiwpcC1zP1ma2gIgYMdvXa/aGSrtdI7asYZuAf1ZHI0B3I0W3yjS6pZHfIc="}],"size":2311,"noattachment":false,"key":"/expand-template/-/expand-template-2.0.2.tgz"},"maintainers":[{"name":"ralphtheninja","email":"ralphtheninja@riseup.net"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/expand-template_2.0.2_1543351609679_0.023970292676494864"},"_hasShrinkwrap":false,"readme":"# expand-template\n\n> Expand placeholders in a template string.\n\n[![npm](https://img.shields.io/npm/v/expand-template.svg)](https://www.npmjs.com/package/expand-template)\n![Node version](https://img.shields.io/node/v/expand-template.svg)\n[![Build Status](https://travis-ci.org/ralphtheninja/expand-template.svg?branch=master)](https://travis-ci.org/ralphtheninja/expand-template)\n[![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)\n\n## Install\n\n```\n$ npm i expand-template -S\n```\n\n## Usage\n\nDefault functionality expands templates using `{}` as separators for string placeholders.\n\n```js\nvar expand = require('expand-template')()\nvar template = '{foo}/{foo}/{bar}/{bar}'\nconsole.log(expand(template, {\n  foo: 'BAR',\n  bar: 'FOO'\n}))\n// -> BAR/BAR/FOO/FOO\n```\n\nCustom separators:\n\n```js\nvar expand = require('expand-template')({ sep: '[]' })\nvar template = '[foo]/[foo]/[bar]/[bar]'\nconsole.log(expand(template, {\n  foo: 'BAR',\n  bar: 'FOO'\n}))\n// -> BAR/BAR/FOO/FOO\n```\n\n## License\nAll code, unless stated otherwise, is dual-licensed under [`WTFPL`](http://www.wtfpl.net/txt/copying/) and [`MIT`](https://opensource.org/licenses/MIT).\n","publish_time":1543351609793,"_cnpm_publish_time":1543351609793,"dist-tags":{"latest":"2.0.3"}}