{"name":"expand-template","version":"2.0.0","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":"WTFPL","dependencies":{},"devDependencies":{"standard":"^11.0.0","tape":"^4.2.2"},"engines":{"node":">=6"},"gitHead":"532f886694e417d0b6b731df44dae9dff02e8b06","bugs":{"url":"https://github.com/ralphtheninja/expand-template/issues"},"_id":"expand-template@2.0.0","_npmVersion":"6.1.0","_nodeVersion":"10.1.0","_npmUser":{"name":"ralphtheninja","email":"ralphtheninja@riseup.net"},"dist":{"integrity":"sha512-KOaBVF5SVs2fJ8JGFeKyxXTB214OVGXQ343zAcKKZ5trNKOSI5QytzozSkVXkpciAN45FoEWxi/o/GTpDndCgA==","shasum":"916de7d1b36997f0b527dee82a173ff8d2076703","tarball":"http://registry-npm.ywwl.com/expand-template/download/expand-template-2.0.0.tgz","fileCount":5,"unpackedSize":4338,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbK4i+CRA9TVsSAnZWagAAZDoP/14YWCfwRl8746thZQ6j\n3LKINWDYkLE204HmnRyAYfzz7cgp/D9RxvJeToZjhZOHbfi9ustcN2hOW56h\n7XFYYIeUm9aYPntlOgdUNWAke9SzG3inx9ILuZlG+cNLAgZr+aS1CuhPVDze\n17f7XA7q+Q9anE/360F+KXol8EzgB0y6pGdoywz2fU1yW2Mq7xk99J56OZx/\nIH26XL91HR80fdWfXEzniSDD2YVwaNKrDC5WiN3e7TvFW3aH80sL8Mr2kx3B\n5VFKVqiWR9VHtNbaE8tJtQqD4jyvRQTvEhSUW6xqMo+vD0DNnSUXGZkREl9K\na9ack+BuX+SroVZTAU0pK7qjZI4bts3Sv/BWQLqj1BIyZbQeAkybRjhSzWVv\ncB+N4TdsvYl1aJQS+suW5QT63KTzKtcM7HsqqA3b6gQiIew+fk7Sbo0fyasw\nUWgnvb2KqbiFrlDV6++clktsechitF9RsVPJDyB0YPd+CeWxvbrOjq9SwR9M\nYsp4MrEWvJIHdq2pfcmXI0zj5IYO6j6IK2+CzshQ51zOmfkbD9jsbmV69Gsp\n/grWEoU7NnN9Hr4RnI/yacUnoQ09PdEpRBjt8ojl160t4DrJu+dkGJkljVGP\nm9fKw2X3L/SGoavmx198CS5NuhLuiU2KI1PyRB+j9uJwHEH7ec5udzvQxSz7\nGnt3\r\n=b3XI\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAdfzAeOg7SebB9xW/MzElSwLpG17ZfTG130CKQpwhcUAiBp+/3CE+Paui8XoXyc6jrGzufK36gg4jfPcIcEoJt76A=="}],"size":1624,"noattachment":false,"key":"/expand-template/-/expand-template-2.0.0.tgz"},"maintainers":[{"name":"ralphtheninja","email":"ralphtheninja@riseup.net"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/expand-template_2.0.0_1529579709243_0.4101888782581875"},"_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":1529579709361,"_cnpm_publish_time":1529579709361,"dist-tags":{"latest":"2.0.3"}}