{"name":"expand-template","version":"1.0.1","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":{"tape":"^4.0.3"},"devDependencies":{"standard":"^5.3.1"},"gitHead":"1c268d2ad671f4d7cb6ee9c6b48424b41287771f","bugs":{"url":"https://github.com/ralphtheninja/expand-template/issues"},"_id":"expand-template@1.0.1","_shasum":"9661c035dcd98882df086a0879932bfdbf5596e0","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.1","_npmUser":{"name":"ralphtheninja","email":"ralphtheninja@riseup.net"},"maintainers":[{"name":"ralphtheninja","email":"ralphtheninja@riseup.net"}],"dist":{"shasum":"9661c035dcd98882df086a0879932bfdbf5596e0","tarball":"http://registry-npm.ywwl.com/expand-template/download/expand-template-1.0.1.tgz","integrity":"sha512-ERolhsvjxaijdxF+m/rcUeLEqvLLXUxKG1aGlmw3Q0s+1W/e9q8W/qhVMk08evPWTxPj/ZofDThIgRSOH5SNvg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHVusD4+XveQYIqVyRTykTKGjZHAzoCohC3RHmwthp7xAiB1JKgHr7kO4J0kFWOl+MIMW3oVOJTHyAoaviqO2rAQ3w=="}],"size":1300,"noattachment":false,"key":"/expand-template/-/expand-template-1.0.1.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":1446027831250,"_cnpm_publish_time":1446027831250,"dist-tags":{"latest":"2.0.3"}}