{"_id":"expand-template","_rev":"52315","name":"expand-template","description":"Expand placeholders in a template string","dist-tags":{"latest":"2.0.3"},"maintainers":[{"name":"ralphtheninja","email":""}],"time":{"modified":"2021-06-03T10:15:59.000Z","created":"2015-08-10T10:17:55.933Z","2.0.3":"2018-11-27T22:30:47.591Z","2.0.2":"2018-11-27T20:46:49.793Z","2.0.1":"2018-11-20T19:55:18.932Z","2.0.0":"2018-06-21T11:15:09.361Z","1.1.1":"2018-05-07T21:14:49.357Z","1.1.0":"2017-08-22T21:26:22.177Z","1.0.4":"2017-08-22T21:23:44.090Z","1.0.3":"2016-09-14T07:09:14.891Z","1.0.2":"2015-11-12T17:20:50.314Z","1.0.1":"2015-10-28T10:23:51.250Z","1.0.0":"2015-08-10T10:17:55.933Z"},"users":{},"author":{"name":"LM","email":"ralphtheninja@riseup.net"},"repository":{"type":"git","url":"git+https://github.com/ralphtheninja/expand-template.git"},"versions":{"2.0.3":{"name":"expand-template","version":"2.0.3","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":"f0c2ecd522fa54b46100555a9bfd0b10680aabd2","bugs":{"url":"https://github.com/ralphtheninja/expand-template/issues"},"_id":"expand-template@2.0.3","_npmVersion":"6.4.1","_nodeVersion":"10.13.0","_npmUser":{"name":"ralphtheninja","email":"ralphtheninja@riseup.net"},"dist":{"shasum":"6e14b3fcee0f3a6340ecb57d2e8918692052a47c","size":2311,"noattachment":false,"key":"/expand-template/-/expand-template-2.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/expand-template/download/expand-template-2.0.3.tgz"},"maintainers":[{"name":"ralphtheninja","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/expand-template_2.0.3_1543357847470_0.06430893527717885"},"_hasShrinkwrap":false,"publish_time":1543357847591,"_cnpm_publish_time":1543357847591},"2.0.2":{"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":{"shasum":"a9ab60e95a7cf497e9d948d3f829139be1f02f46","size":2311,"noattachment":false,"key":"/expand-template/-/expand-template-2.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/expand-template/download/expand-template-2.0.2.tgz"},"maintainers":[{"name":"ralphtheninja","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/expand-template_2.0.2_1543351609679_0.023970292676494864"},"_hasShrinkwrap":false,"publish_time":1543351609793,"_cnpm_publish_time":1543351609793},"2.0.1":{"name":"expand-template","version":"2.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":{},"devDependencies":{"standard":"^12.0.0","tape":"^4.2.2"},"engines":{"node":">=6"},"gitHead":"068855038de101fd8c3619a3b844a7121579a32b","bugs":{"url":"https://github.com/ralphtheninja/expand-template/issues"},"_id":"expand-template@2.0.1","_npmVersion":"6.4.1","_nodeVersion":"10.13.0","_npmUser":{"name":"ralphtheninja","email":"ralphtheninja@riseup.net"},"dist":{"shasum":"b0a8c65f5cd7d9425df30bd4b9cd55edd95fd647","size":2304,"noattachment":false,"key":"/expand-template/-/expand-template-2.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/expand-template/download/expand-template-2.0.1.tgz"},"maintainers":[{"name":"ralphtheninja","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/expand-template_2.0.1_1542743718832_0.019422666325194404"},"_hasShrinkwrap":false,"publish_time":1542743718932,"_cnpm_publish_time":1542743718932},"2.0.0":{"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":{"shasum":"916de7d1b36997f0b527dee82a173ff8d2076703","size":1624,"noattachment":false,"key":"/expand-template/-/expand-template-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/expand-template/download/expand-template-2.0.0.tgz"},"maintainers":[{"name":"ralphtheninja","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/expand-template_2.0.0_1529579709243_0.4101888782581875"},"_hasShrinkwrap":false,"publish_time":1529579709361,"_cnpm_publish_time":1529579709361},"1.1.1":{"name":"expand-template","version":"1.1.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":{},"devDependencies":{"standard":"^11.0.0","tape":"^4.2.2"},"gitHead":"252aee7952b3c4ea6a1b9699ee4f6324586952b3","bugs":{"url":"https://github.com/ralphtheninja/expand-template/issues"},"_id":"expand-template@1.1.1","_npmVersion":"6.0.0","_nodeVersion":"10.0.0","_npmUser":{"name":"ralphtheninja","email":"ralphtheninja@riseup.net"},"dist":{"shasum":"981f188c0c3a87d2e28f559bc541426ff94f21dd","size":1527,"noattachment":false,"key":"/expand-template/-/expand-template-1.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/expand-template/download/expand-template-1.1.1.tgz"},"maintainers":[{"name":"ralphtheninja","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/expand-template_1.1.1_1525727689264_0.6627704267065915"},"_hasShrinkwrap":false,"publish_time":1525727689357,"_cnpm_publish_time":1525727689357},"1.1.0":{"name":"expand-template","version":"1.1.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":"^10.0.3","tape":"^4.2.2"},"gitHead":"5fbffa338689cef04551a93092e9375220222de3","bugs":{"url":"https://github.com/ralphtheninja/expand-template/issues"},"_id":"expand-template@1.1.0","_npmVersion":"5.3.0","_nodeVersion":"8.3.0","_npmUser":{"name":"ralphtheninja","email":"ralphtheninja@riseup.net"},"dist":{"shasum":"e09efba977bf98f9ee0ed25abd0c692e02aec3fc","size":1515,"noattachment":false,"key":"/expand-template/-/expand-template-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/expand-template/download/expand-template-1.1.0.tgz"},"maintainers":[{"name":"ralphtheninja","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/expand-template-1.1.0.tgz_1503437181237_0.527762224432081"},"directories":{},"publish_time":1503437182177,"_hasShrinkwrap":false,"_cnpm_publish_time":1503437182177},"1.0.4":{"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":{"shasum":"7f6ca646e62e959a6b835f10586edf2034da36fe","size":1351,"noattachment":false,"key":"/expand-template/-/expand-template-1.0.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/expand-template/download/expand-template-1.0.4.tgz"},"maintainers":[{"name":"ralphtheninja","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/expand-template-1.0.4.tgz_1503437023171_0.5823726421222091"},"directories":{},"publish_time":1503437024090,"_cnpm_publish_time":1503437024090,"_hasShrinkwrap":false},"1.0.3":{"name":"expand-template","version":"1.0.3","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":"^5.3.1","tape":"^4.2.2"},"gitHead":"686c7929a144bba8e43934d396bfe6992ed4a832","bugs":{"url":"https://github.com/ralphtheninja/expand-template/issues"},"_id":"expand-template@1.0.3","_shasum":"6c303323177a62b1b22c070279f7861287b69b1a","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.5.0","_npmUser":{"name":"ralphtheninja","email":"ralphtheninja@riseup.net"},"maintainers":[{"name":"ralphtheninja","email":""}],"dist":{"shasum":"6c303323177a62b1b22c070279f7861287b69b1a","size":1314,"noattachment":false,"key":"/expand-template/-/expand-template-1.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/expand-template/download/expand-template-1.0.3.tgz"},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/expand-template-1.0.3.tgz_1473836954066_0.04371993010863662"},"directories":{},"publish_time":1473836954891,"_cnpm_publish_time":1473836954891,"_hasShrinkwrap":false},"1.0.2":{"name":"expand-template","version":"1.0.2","description":"Expand placeholders in a template string","main":"index.js","repository":{"type":"git","url":"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":"^5.3.1","tape":"^4.2.2"},"gitHead":"c76353bdf5ee8b41e9f9521eaecc06a0073ea160","bugs":{"url":"https://github.com/ralphtheninja/expand-template/issues"},"_id":"expand-template@1.0.2","_shasum":"9c7d9d87957be425c5be86d84b6e2a678ef05c65","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.2","_npmUser":{"name":"ralphtheninja","email":"ralphtheninja@riseup.net"},"maintainers":[{"name":"ralphtheninja","email":""}],"dist":{"shasum":"9c7d9d87957be425c5be86d84b6e2a678ef05c65","size":1287,"noattachment":false,"key":"/expand-template/-/expand-template-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/expand-template/download/expand-template-1.0.2.tgz"},"directories":{},"publish_time":1447348850314,"_cnpm_publish_time":1447348850314,"_hasShrinkwrap":false},"1.0.1":{"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":""}],"dist":{"shasum":"9661c035dcd98882df086a0879932bfdbf5596e0","size":1300,"noattachment":false,"key":"/expand-template/-/expand-template-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/expand-template/download/expand-template-1.0.1.tgz"},"directories":{},"publish_time":1446027831250,"_cnpm_publish_time":1446027831250,"_hasShrinkwrap":false},"1.0.0":{"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":""}],"dist":{"shasum":"ae533f46d8b0a778171af84a5b80692feec82e16","size":1273,"noattachment":false,"key":"/expand-template/-/expand-template-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/expand-template/download/expand-template-1.0.0.tgz"},"directories":{},"publish_time":1439201875933,"_cnpm_publish_time":1439201875933,"_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","_attachments":{},"homepage":"https://github.com/ralphtheninja/expand-template","bugs":{"url":"https://github.com/ralphtheninja/expand-template/issues"},"license":"(MIT OR WTFPL)"}