{"_id":"placeholders","_rev":"231132","name":"placeholders","description":"Replace placeholder values in a file path.","dist-tags":{"latest":"1.0.0"},"maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"},{"name":"jonschlinkert","email":"github@sellside.com"}],"time":{"modified":"2021-06-03T15:46:12.000Z","created":"2015-08-31T23:45:15.874Z","1.0.0":"2017-06-17T17:40:34.779Z","0.3.0":"2016-07-11T19:14:46.134Z","0.2.0":"2015-09-17T20:27:08.633Z","0.1.1":"2015-09-16T00:59:28.068Z","0.1.0":"2015-08-31T23:45:15.874Z"},"users":{},"author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/placeholders.git"},"versions":{"1.0.0":{"name":"placeholders","description":"Replace placeholder values in a file path.","version":"1.0.0","homepage":"https://github.com/jonschlinkert/placeholders","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"contributors":[{"name":"Brian Woodward","url":"https://twitter.com/doowb"},{"name":"Jon Schlinkert","url":"http://twitter.com/jonschlinkert"}],"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/placeholders.git"},"bugs":{"url":"https://github.com/jonschlinkert/placeholders/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"assign-deep":"^0.4.5","expand":"^0.5.0"},"devDependencies":{"gulp":"^3.9.1","gulp-eslint":"^3.0.1","gulp-format-md":"^0.1.12","gulp-istanbul":"^1.0.0","gulp-mocha":"^2.2.0","mocha":"^2.5.3"},"keywords":["dot","dot-notation","file","filepath","interpolate","notation","param","parameter","path","permalink","placeholder","prop","rewrite","url"],"verb":{"related":{"list":["assign-deep","expand"]},"reflinks":["verb","verb-readme-generator"],"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"lint":{"reflinks":true}},"gitHead":"f5e7e953f9d64d0cbd5d4fa81b49d99d91a1290f","_id":"placeholders@1.0.0","_shasum":"d8f6ca9421e3bcf9132cfe30730870008ab2d420","_from":".","_npmVersion":"4.6.1","_nodeVersion":"6.10.1","_npmUser":{"name":"doowb","email":"brian.woodward@gmail.com"},"dist":{"shasum":"d8f6ca9421e3bcf9132cfe30730870008ab2d420","size":3139,"noattachment":false,"key":"/placeholders/-/placeholders-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/placeholders/download/placeholders-1.0.0.tgz"},"maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"},{"name":"jonschlinkert","email":"github@sellside.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/placeholders-1.0.0.tgz_1497721234498_0.19866359769366682"},"directories":{},"publish_time":1497721234779,"_cnpm_publish_time":1497721234779,"_hasShrinkwrap":false},"0.3.0":{"name":"placeholders","description":"Replace placeholder values in a file path.","version":"0.3.0","homepage":"https://github.com/jonschlinkert/placeholders","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/placeholders.git"},"bugs":{"url":"https://github.com/jonschlinkert/placeholders/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"assign-deep":"^0.4.5","expand":"^0.4.3"},"devDependencies":{"gulp":"^3.9.1","gulp-eslint":"^3.0.1","gulp-istanbul":"^1.0.0","gulp-mocha":"^2.2.0","mocha":"^2.5.3"},"keywords":["dot","dot-notation","file","filepath","interpolate","notation","param","parameter","path","permalink","placeholder","prop","rewrite","url"],"verb":{"related":{"list":["assign-deep","expand"]},"reflinks":["verb","verb-readme-generator"],"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"lint":{"reflinks":true}},"gitHead":"d4354b46f251a93359afdde4be124bada8042ee2","_id":"placeholders@0.3.0","_shasum":"d14d487b32bda5e8399f2481fdda3631aa859200","_from":".","_npmVersion":"3.7.5","_nodeVersion":"5.1.1","_npmUser":{"name":"doowb","email":"brian.woodward@gmail.com"},"dist":{"shasum":"d14d487b32bda5e8399f2481fdda3631aa859200","size":2968,"noattachment":false,"key":"/placeholders/-/placeholders-0.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/placeholders/download/placeholders-0.3.0.tgz"},"maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"},{"name":"jonschlinkert","email":"github@sellside.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/placeholders-0.3.0.tgz_1468264483628_0.9228904973715544"},"directories":{},"publish_time":1468264486134,"_cnpm_publish_time":1468264486134,"_hasShrinkwrap":false},"0.2.0":{"name":"placeholders","description":"Replace placeholder values in a file path.","version":"0.2.0","homepage":"https://github.com/jonschlinkert/placeholders","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/placeholders.git"},"bugs":{"url":"https://github.com/jonschlinkert/placeholders/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"assign-deep":"^0.3.1","expand":"^0.3.1"},"devDependencies":{"gulp":"^3.9.0","gulp-istanbul":"^0.10.0","gulp-jshint":"^1.11.2","gulp-mocha":"^2.1.3","jshint-stylish":"^2.0.1","mocha":"*"},"keywords":["dot","dot-notation","file","filepath","interpolate","notation","param","parameter","path","permalink","placeholder","prop","rewrite","url"],"gitHead":"f5697a3ace8b7c23833d8a69dca348f3f09c2851","_id":"placeholders@0.2.0","_shasum":"1aeff13bf71cf01d55176bf9ca370f07d210eac3","_from":".","_npmVersion":"2.10.1","_nodeVersion":"0.12.4","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"},{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"1aeff13bf71cf01d55176bf9ca370f07d210eac3","size":2491,"noattachment":false,"key":"/placeholders/-/placeholders-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/placeholders/download/placeholders-0.2.0.tgz"},"directories":{},"publish_time":1442521628633,"_cnpm_publish_time":1442521628633,"_hasShrinkwrap":false},"0.1.1":{"name":"placeholders","description":"Replace placeholder values in a file path.","version":"0.1.1","homepage":"https://github.com/jonschlinkert/placeholders","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/placeholders.git"},"bugs":{"url":"https://github.com/jonschlinkert/placeholders/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"assign-deep":"^0.3.1","expand":"^0.2.1"},"devDependencies":{"gulp":"^3.9.0","gulp-istanbul":"^0.10.0","gulp-jshint":"^1.11.2","gulp-mocha":"^2.1.3","jshint-stylish":"^2.0.1","mocha":"*"},"keywords":["dot","dot-notation","file","filepath","interpolate","notation","param","parameter","path","permalink","placeholder","prop","rewrite","url"],"gitHead":"9accffc8f398994161099a130c47190ce4952da3","_id":"placeholders@0.1.1","_shasum":"1ac7b7349484bae7a4245f6c043e2ada1eba2a06","_from":".","_npmVersion":"2.10.1","_nodeVersion":"0.12.4","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"},{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"1ac7b7349484bae7a4245f6c043e2ada1eba2a06","size":2488,"noattachment":false,"key":"/placeholders/-/placeholders-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/placeholders/download/placeholders-0.1.1.tgz"},"directories":{},"publish_time":1442365168068,"_cnpm_publish_time":1442365168068,"_hasShrinkwrap":false},"0.1.0":{"name":"placeholders","description":"Replace placeholder values in a file path.","version":"0.1.0","homepage":"https://github.com/jonschlinkert/placeholders","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/placeholders.git"},"bugs":{"url":"https://github.com/jonschlinkert/placeholders/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"assign-deep":"^0.3.1","expand":"^0.1.4"},"devDependencies":{"mocha":"*"},"keywords":["dot","dot-notation","file","filepath","interpolate","notation","param","parameter","path","permalink","placeholder","prop","rewrite","url"],"gitHead":"9accffc8f398994161099a130c47190ce4952da3","_id":"placeholders@0.1.0","_shasum":"6c66d493e77243027d9e7c2ae438e0d66c91db3f","_from":".","_npmVersion":"2.10.1","_nodeVersion":"0.12.4","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"},{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"6c66d493e77243027d9e7c2ae438e0d66c91db3f","size":2429,"noattachment":false,"key":"/placeholders/-/placeholders-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/placeholders/download/placeholders-0.1.0.tgz"},"directories":{},"publish_time":1441064715874,"_cnpm_publish_time":1441064715874,"_hasShrinkwrap":false}},"readme":"# placeholders [![NPM version](https://img.shields.io/npm/v/placeholders.svg?style=flat)](https://www.npmjs.com/package/placeholders) [![NPM monthly downloads](https://img.shields.io/npm/dm/placeholders.svg?style=flat)](https://npmjs.org/package/placeholders)  [![NPM total downloads](https://img.shields.io/npm/dt/placeholders.svg?style=flat)](https://npmjs.org/package/placeholders) [![Linux Build Status](https://img.shields.io/travis/jonschlinkert/placeholders.svg?style=flat&label=Travis)](https://travis-ci.org/jonschlinkert/placeholders) [![Windows Build Status](https://img.shields.io/appveyor/ci/jonschlinkert/placeholders.svg?style=flat&label=AppVeyor)](https://ci.appveyor.com/project/jonschlinkert/placeholders)\n\n> Replace placeholder values in a file path.\n\n## Install\n\nInstall with [npm](https://www.npmjs.com/):\n\n```sh\n$ npm install --save placeholders\n```\n\nInstall with [yarn](https://yarnpkg.com):\n\n```sh\n$ yarn add placeholders\n```\n\n## Install\n\nInstall with [npm](https://www.npmjs.com/):\n\n```sh\n$ npm install --save placeholders\n```\n\n## Usage\n\n```js\nvar placeholders = require('placeholders')(options);\n\nplaceholders('/site/blog/:path', {path: 'foo-bar.md'});\n//=> '/site/blog/foo-bar.md'\n```\n\n## Options\n\nOptions may be passed to the main function.\n\n```js\nvar placeholders = require('placeholders')(options);\n```\n\n### options.regex\n\nPass a custom regex to use for replacements.\n\n**Type**: `{RegExp}`\n\n**Default**: the default regex matches es6 delimiters and lodash template syntax.\n\n**Example**\n\nMatch [printf-like](https://en.wikipedia.org/wiki/Printf_format_string) strings:\n\n```js\nvar placeholders = require('placeholders')({\n  regex: /%([^%]+)%/\n});\n```\n\n### options.data\n\nPass a `data` object on the main function to use for resolving values.\n\n**Type**: `{Object}`\n\n**Default**: `undefined`\n\n**Example**\n\n```js\nvar placeholders = require('placeholders')({\n  data: {foo: 'one', bar: 'two'}\n});\n\nplaceholders(':foo/:bar/:baz', {baz: 'three'})\n//=> 'one/two/three'\n```\n\n### returns a function when no data is passed\n\nThis allows you to reuse the same pattern with different data,\nlike a compiled template.\n\n```js\nvar placeholders = require('placeholders')({\n  regex: /%([^%]+)%/\n});\n\nvar fn = placeholders('foo/%bar%/%baz%');\nfn({bar: 'one', baz: 'two'})\n//=> 'foo/one/two'\nfn({bar: 'a', baz: 'b'})\n//=> 'foo/a/b'\n```\n\n## About\n\n### Related projects\n\n* [assign-deep](https://www.npmjs.com/package/assign-deep): Deeply assign the enumerable properties and/or es6 Symbol properies of source objects to the target… [more](https://github.com/jonschlinkert/assign-deep) | [homepage](https://github.com/jonschlinkert/assign-deep \"Deeply assign the enumerable properties and/or es6 Symbol properies of source objects to the target (first) object.\")\n* [expand](https://www.npmjs.com/package/expand): Recursively resolve templates in an object, string or array. | [homepage](https://github.com/jonschlinkert/expand \"Recursively resolve templates in an object, string or array.\")\n\n### Contributing\n\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new).\n\n### Contributors\n\n| **Commits** | **Contributor** |  \n| --- | --- |  \n| 13 | [jonschlinkert](https://github.com/jonschlinkert) |  \n| 8  | [doowb](https://github.com/doowb) |  \n\n### Building docs\n\n_(This project's readme.md is generated by [verb](https://github.com/verbose/verb-generate-readme), please don't edit the readme directly. Any changes to the readme must be made in the [.verb.md](.verb.md) readme template.)_\n\nTo generate the readme, run the following command:\n\n```sh\n$ npm install -g verbose/verb#dev verb-generate-readme && verb\n```\n\n### Running tests\n\nRunning and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command:\n\n```sh\n$ npm install && npm test\n```\n\n### Author\n\n**Jon Schlinkert**\n\n* [github/jonschlinkert](https://github.com/jonschlinkert)\n* [twitter/jonschlinkert](https://twitter.com/jonschlinkert)\n\n### License\n\nCopyright © 2017, [Jon Schlinkert](https://github.com/jonschlinkert).\nReleased under the [MIT License](LICENSE).\n\n***\n\n_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.6.0, on June 17, 2017._","_attachments":{},"homepage":"https://github.com/jonschlinkert/placeholders","bugs":{"url":"https://github.com/jonschlinkert/placeholders/issues"},"license":"MIT"}