{"name":"expand-template","version":"1.0.4","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":"^10.0.3","tape":"^4.2.2"},"gitHead":"f568efb046edd60bb2993f26ecead03bffa1f095","bugs":{"url":"https://github.com/ralphtheninja/expand-template/issues"},"_id":"expand-template@1.0.4","_npmVersion":"5.3.0","_nodeVersion":"8.3.0","_npmUser":{"name":"ralphtheninja","email":"ralphtheninja@riseup.net"},"dist":{"integrity":"sha512-42cXTxmoaxpet1k5o+4vlWhNyDrWtlrCrbXg0GiuhmVku3njXjeISgugv0FXoK3LzRXUcr40nvyXvFl8A+R1VQ==","shasum":"7f6ca646e62e959a6b835f10586edf2034da36fe","tarball":"http://registry-npm.ywwl.com/expand-template/download/expand-template-1.0.4.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC2YUFrq5MMjY1VF/MJKIFVtL7xcXiM6OMf0RsgMcs+EQIgKn/Kr2xm2xxry9K7RsGC5UiLSiUpnDYLtdS4Ra7tBFk="}],"size":1351,"noattachment":false,"key":"/expand-template/-/expand-template-1.0.4.tgz"},"maintainers":[{"name":"ralphtheninja","email":"ralphtheninja@riseup.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/expand-template-1.0.4.tgz_1503437023171_0.5823726421222091"},"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":1503437024090,"_cnpm_publish_time":1503437024090,"dist-tags":{"latest":"2.0.3"}}