{"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":{"integrity":"sha512-6vFlR7y85Hr5bdhFVzFoZJOrxD+074na5+dTmHff2491QMzIfwgEWvyfnlTHax9l3dBdBEhI1cQ/2YZ4bhypHA==","shasum":"b0a8c65f5cd7d9425df30bd4b9cd55edd95fd647","tarball":"http://registry-npm.ywwl.com/expand-template/download/expand-template-2.0.1.tgz","fileCount":6,"unpackedSize":5401,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb9GanCRA9TVsSAnZWagAAAHQP/0u3YxtfNOnxuteP92EM\nQg5csk7eZkHCH+E6v5PrszHgqN0AgJYGSQNIpoTgkJ8jIvI+dI01heZmBKWD\nsrQ0StTr6lEfYhz5jEtT5FgVoNGzw3+PsoUBCpfRhAGRVyAt4INz7BOVYFBZ\nN3yuKZy/XYsdXbbsZGMv74OcATcYXg0kTpOwXoB8rD7kibQbF0egL3oyw95I\nQr/Fs0OqAzPirARLfVHcfb9wfKexG4a39Hbo+Qq/Q0zVi7/fKDpszct5dDqa\nhErszjbaEv7kkEvp2qxVrbFrI3pGIKM+Sev+lJ7IGnMa7qdbtILSTtDj7aRu\n9t9n+7vwpjS4t76O2JdM1joF7oYE7PK1ZuUL/nH16Co+wLfWbDX0eS528zUO\nIerkVD2KYn5ipOL98fQ/cNTAZ9CxHBfjJvVYDon5/0OZ8NA856+7jTsh5WTC\nqXees0njCQbm2lCOuc+tWxlWaZmxRMaaHmrEmzOK32/FfF8cjAoTxROhC3Bf\nA2uoD0trfvfySaY/cyVOVkiEQNgldH/yR4DyA4c4V2Qe95dKvk7jAWMmwXbC\nOxt/rADwltO8LpS8sEj+5rEy3Z6Wt6lir9EtOBkJue4OtxByN1sYi7k2CbP2\nnQPAQJuwsAxReVHMFoD+dKw3qkQ/l28o5UcwKYK4WoTU/jAE90TE+nKVWpKa\nIGnH\r\n=3he3\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIC0cn5K6vQeptEikGveDgmRTgSyREN6DIKIPwNJAEAdhAiEAycmu7RS1SS60+5ASEpxH2YaHrXCQdDgnbBJseMDPaCo="}],"size":2304,"noattachment":false,"key":"/expand-template/-/expand-template-2.0.1.tgz"},"maintainers":[{"name":"ralphtheninja","email":"ralphtheninja@riseup.net"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/expand-template_2.0.1_1542743718832_0.019422666325194404"},"_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":1542743718932,"_cnpm_publish_time":1542743718932,"dist-tags":{"latest":"2.0.3"}}