{"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":{"integrity":"sha512-cebqLtV8KOZfw0UI8TEFWxtczxxC1jvyUvx6H4fyp1K1FN7A4Q+uggVUlOsI1K8AGU0rwOGqP8nCapdrw8CYQg==","shasum":"981f188c0c3a87d2e28f559bc541426ff94f21dd","tarball":"http://registry-npm.ywwl.com/expand-template/download/expand-template-1.1.1.tgz","fileCount":5,"unpackedSize":3833,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa8MHJCRA9TVsSAnZWagAA2kIP/iGdY4tWpPFhaPcMfpE2\nKq2v7zEs48vRoVUaXGrixMuebwFWnl82PbTmoOsfOZ0SGCPjol2Zl9tOR069\n+rB6Edp77i8UTdG4RFaT5BZSIEVCMxjv8eav0//A2wunZTB7CHmKUqfSkF8t\nwOa8yXKcaYJzbzCaUp3a5nylvxKza3fLXY0IoDJusfQYimn3Wj6BmMsgymfg\nosWhkXROEhvoRVBzmVj5nwuFUwdzEkKt3AU+ZmLE/PySNKismc0U2MCmOTpc\n/SlppovsbexJybQgfDigORuVZDNmFtLMJYe9H1y9pardvKdyXxLMFIyHVDxk\nswRC76TeqF2P2hEsZ1L6AYqU4oFQfNSberzr+0/w60KA48IhgxVVzTBVOaW4\n9dPWAdNWnunvK5Bt2iiDy3vlCGe3Jen6+6NPzLv153R6Oz1UV77MnAz6PiU+\ncGgzO+RgDcFOYur0+fs1YPYuYvJaPufhs7I0g9GF2pGlZKBVHFWzvRaY4VtG\nQ6GPk6Kb9ds1j6HEx+MDZAhX6FSk0T1GlCTgOuEDWDzGFO+HeGous2WHZqSo\n6GfQT/63TtgvZol1bJGbuQJz0fVLqhqgSAXWTQxwJpqDkU/2U5F2x7OFu4hK\n16BcRLsR5wYZSuiH3rAML5PW62mGDr+a1wke0T0IydtLC+x9Bm+ss2FTB9h2\nqFrr\r\n=eA/K\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCgJk8LLTYT/5Su2tQkXSoLEZ4vv7fYnC5JxXj1p7Qt4AIhAJqKjy9tSD1j1opuJ/vAY/sL07xgBIzT8FbY4hS13gKN"}],"size":1527,"noattachment":false,"key":"/expand-template/-/expand-template-1.1.1.tgz"},"maintainers":[{"name":"ralphtheninja","email":"ralphtheninja@riseup.net"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/expand-template_1.1.1_1525727689264_0.6627704267065915"},"_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":1525727689357,"_cnpm_publish_time":1525727689357,"dist-tags":{"latest":"2.0.3"}}