{"_id":"rename-path","_rev":"106491","name":"rename-path","description":"Return a mapped dest for a src a filepath.","dist-tags":{"latest":"0.2.0"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"time":{"modified":"2021-06-03T10:38:34.000Z","created":"2014-06-28T14:00:04.233Z","0.2.0":"2014-07-31T00:21:16.273Z","0.1.1":"2014-06-28T14:18:05.055Z","0.1.0":"2014-06-28T14:00:04.233Z"},"users":{},"author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/rename-path.git"},"versions":{"0.2.0":{"name":"rename-path","description":"Return a mapped dest for a src a filepath.","version":"0.2.0","homepage":"https://github.com/jonschlinkert/rename-path","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/rename-path.git"},"bugs":{"url":"https://github.com/jonschlinkert/rename-path/issues"},"licenses":[{"type":"MIT","url":"https://github.com/jonschlinkert/rename-path/blob/master/LICENSE-MIT"}],"keywords":["ext","extname","extensions","extension","utils","path","filepath","fs","file"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha -R spec"},"devDependencies":{"verb":"~0.2.6","chai":"~1.9.1","mocha":"*"},"dependencies":{"ext-ext":"^0.1.0","parse-filepath":"^0.3.0","relative":"^0.1.4"},"_id":"rename-path@0.2.0","_shasum":"92c3e000113bf95ec415dadfc24b5518b9071729","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"92c3e000113bf95ec415dadfc24b5518b9071729","size":4358,"noattachment":false,"key":"/rename-path/-/rename-path-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/rename-path/download/rename-path-0.2.0.tgz"},"directories":{},"publish_time":1406766076273,"_cnpm_publish_time":1406766076273,"_hasShrinkwrap":false},"0.1.1":{"name":"rename-path","description":"Return a mapped dest for a src a filepath.","version":"0.1.1","homepage":"https://github.com/jonschlinkert/rename-path","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/rename-path.git"},"bugs":{"url":"https://github.com/jonschlinkert/rename-path/issues"},"licenses":[{"type":"MIT","url":"https://github.com/jonschlinkert/rename-path/blob/master/LICENSE-MIT"}],"keywords":["ext","extname","extensions","extension","utils","path","filepath","fs","file"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha -R spec"},"devDependencies":{"verb":"~0.2.6","chai":"~1.9.1","mocha":"*"},"dependencies":{"ext-ext":"^0.1.0","parse-filepath":"^0.3.0","relative":"^0.1.4"},"_id":"rename-path@0.1.1","_shasum":"aa1d98a443569a4c2fd3391f62c770baa584e1d7","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"aa1d98a443569a4c2fd3391f62c770baa584e1d7","size":4355,"noattachment":false,"key":"/rename-path/-/rename-path-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/rename-path/download/rename-path-0.1.1.tgz"},"directories":{},"publish_time":1403965085055,"_cnpm_publish_time":1403965085055,"_hasShrinkwrap":false},"0.1.0":{"name":"rename-path","description":"Return a mapped dest for a src a filepath.","version":"0.1.0","homepage":"https://github.com/jonschlinkert/rename-path","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/rename-path.git"},"bugs":{"url":"https://github.com/jonschlinkert/rename-path/issues"},"licenses":[{"type":"MIT","url":"https://github.com/jonschlinkert/rename-path/blob/master/LICENSE-MIT"}],"keywords":["ext","extname","extensions","extension","utils","path","filepath","fs","file"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha -R spec"},"devDependencies":{"verb":"~0.2.6","chai":"~1.9.1","mocha":"*"},"dependencies":{"ext-ext":"^0.1.0","parse-filepath":"^0.3.0","relative":"^0.1.4"},"_id":"rename-path@0.1.0","_shasum":"36659d692c3331fe133f9cc554d435279d0a1ea4","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"36659d692c3331fe133f9cc554d435279d0a1ea4","size":4320,"noattachment":false,"key":"/rename-path/-/rename-path-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/rename-path/download/rename-path-0.1.0.tgz"},"directories":{},"publish_time":1403964004233,"_cnpm_publish_time":1403964004233,"_hasShrinkwrap":false}},"readme":"# rename-path [![NPM version](https://badge.fury.io/js/rename-path.png)](http://badge.fury.io/js/rename-path)\n\n> Return a mapped dest for a src a filepath.\n\n## Install\nInstall with [npm](npmjs.org):\n\n```bash\nnpm i rename-path --save-dev\n```\n\n## Usage\n\n```js\nvar rename = require('rename-paths');\nvar filepath = 'a/b/c.js';\n\nconsole.log(rename(filepath, {ext: '.min.js'}));\n//=> 'a/b/c.min.js'\n\nconsole.log(rename(filepath, {destBase: 'dist', ext: '.min.js'}));\n//=> 'dist/a/b/c.min.js'\n\nconsole.log(rename(filepath, {flatten: true, ext: '.min.js'}));\n//=> 'c.min.js'\n```\n\nSee [the tests](./test) for more examples.\n\n\n## Tests\n\nIn the command line, run:\n\n```bash\nmocha\n```\n\n## Author\n\n**Jon Schlinkert**\n \n+ [github/jonschlinkert](https://github.com/jonschlinkert)\n+ [twitter/jonschlinkert](http://twitter.com/jonschlinkert) \n\n## License\nCopyright (c) 2014 Jon Schlinkert, contributors.  \nReleased under the MIT license\n\n***\n\n_This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on June 28, 2014._","_attachments":{},"homepage":"https://github.com/jonschlinkert/rename-path","bugs":{"url":"https://github.com/jonschlinkert/rename-path/issues"}}