{"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":{"integrity":"sha512-XYfuKMvj4O35f/pOXLObndIRvyQ+/+6AhODh+OKWj9S9498pHHn/IMszH+gt0fBCRWMNfk1ZSp5x3AifmnI2vg==","shasum":"6e14b3fcee0f3a6340ecb57d2e8918692052a47c","tarball":"http://registry-npm.ywwl.com/expand-template/download/expand-template-2.0.3.tgz","fileCount":6,"unpackedSize":5410,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb/cWYCRA9TVsSAnZWagAAZRwP/jWXGcdNErAJiGv3n/75\ndmQQZFwO2Dcgq8kwQamnbXGl8+nm0P168O5UBl3FOytnxhSHbOR/Kv4YCJZt\nbXcRjDdkE1686TBpkNshe+iZfuEbtzleN3KdZ1ZOekw8q3A13CMxl+3NQXIu\nZK7NIKJFVUr93rPESRPYPTNRG+VUuWqDAuQTSsp5r6GHdE+Uy72dyANDrDFB\n4++/enNWIMyL7iT02ekl3QZZVbKI4vEbD/sHhACW7kjjO3Vjtau6Wzi7uvva\nMXWb7KPrDMwO1tAhA3kV/7K5YIG4dPEdilKMdum6IRzw3eZX7ed6id8//UlQ\nl63JzABzEgIZLz4mXElhI1qAqqk5HLLU1wRtznKaWonZXpXxSynf5kaeXbuA\nmC2w9oig2fM+1XgHuHLKTtQ5WfxaNX6rYio0FmrytfsCFiu/NP28d6xyxO3I\n7Ux9WICwtLgIZvD3MyF9Ft+Dctoqz6hQ5zEjz4SQR512QCgXHwoKpkqCEYu7\nJVxr2uuO31izv042yXr3TVb+drnMBytglwriWjXCveyqFajoRxNvQ00j988+\nXOymLpRR0Sryaaa5uifjl2kkFwOrqcrLBtURPohcNpa9xDeLkQHSVSOeNo0I\nkoBpCmR6Cv2H7SHkoktpeCRpd+XCNWYMQgXjUOtSZzXRCbhb0WZTNHMMDrhy\nHMFT\r\n=TO59\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIA3EbqTwlGQkv/qcmSaoHedEyP6BBR95vx+G/XX+Po5kAiAjl3a6fs1NMIXXOCEilXTEPk/5rY0tQOAV3H05Z1FuJw=="}],"size":2311,"noattachment":false,"key":"/expand-template/-/expand-template-2.0.3.tgz"},"maintainers":[{"name":"ralphtheninja","email":"ralphtheninja@riseup.net"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/expand-template_2.0.3_1543357847470_0.06430893527717885"},"_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":1543357847591,"_cnpm_publish_time":1543357847591,"dist-tags":{"latest":"2.0.3"}}