{"name":"expand-template","version":"1.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"},"keywords":["template","expand","replace"],"author":{"name":"LM","email":"ralphtheninja@riseup.net"},"license":"WTFPL","dependencies":{"tape":"^4.0.3"},"gitHead":"045eb83ce3611aba1d79776f2524c6703a2e38f9","bugs":{"url":"https://github.com/ralphtheninja/expand-template/issues"},"_id":"expand-template@1.0.0","_shasum":"ae533f46d8b0a778171af84a5b80692feec82e16","_from":".","_npmVersion":"2.13.2","_nodeVersion":"2.5.0","_npmUser":{"name":"ralphtheninja","email":"ralphtheninja@riseup.net"},"maintainers":[{"name":"ralphtheninja","email":"ralphtheninja@riseup.net"}],"dist":{"shasum":"ae533f46d8b0a778171af84a5b80692feec82e16","tarball":"http://registry-npm.ywwl.com/expand-template/download/expand-template-1.0.0.tgz","integrity":"sha512-ipslqQJNRyI3bngNUcf9co5pJ7ht8r6sEXVydGPTZWMj9Et7bZNFzAkcqlhxAoaEw7m0F5MRxB1JJQWY/plx+Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCY9/VBTz6GNgdmA8tJgTstV2ogCP1Xf475vC8k1bwVdQIgcVm7EgkaZF6XXytMH/PH8+1vfc4/Pkq81/sRylCHkho="}],"size":1273,"noattachment":false,"key":"/expand-template/-/expand-template-1.0.0.tgz"},"directories":{},"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":1439201875933,"_cnpm_publish_time":1439201875933,"dist-tags":{"latest":"2.0.3"}}