{"_id":"map-dest","_rev":"12-10e6a6cb96b9e064528584cd009e2f39","name":"map-dest","description":"Map the destination path for a file based on the given source path and options.","dist-tags":{"latest":"0.1.8"},"versions":{"0.1.0":{"name":"map-dest","description":"Map the destination path for a file based on the given source path and options.","version":"0.1.0","homepage":"https://github.com/jonschlinkert/map-dest","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/map-dest.git"},"bugs":{"url":"https://github.com/jonschlinkert/map-dest/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"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":"*","should":"*"},"keywords":["config","configuration","dest","destination","expand","files array","files object","files","normalize","options","src","src-dest","target","task"],"verb":{"related":{"list":["files-objects","expand-config","expand-files","expand-task","expand-target"]}},"gitHead":"724045b0685ed011ac1bb74618b335c84374e961","_id":"map-dest@0.1.0","_shasum":"a127edb30d5a1531f8f62b3229ddb340a3d12575","_from":".","_npmVersion":"2.10.1","_nodeVersion":"0.12.4","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"a127edb30d5a1531f8f62b3229ddb340a3d12575","tarball":"https://registry.npmjs.org/map-dest/-/map-dest-0.1.0.tgz","integrity":"sha512-xtyEdf7BOVIMWMmASNRTFBxoQt4O9GjBZEHQuK25/GoYe7+9zOnubFiF4CleGutfpYwOuU1ibjmfwmIX0HEkGw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC1lujFOv/lLE0ug9f3F4BRGSjGuRQBhqWEJ9fuD164EgIgULJmQ6QlsIsx/S/x+ED0mJlx7OxMezaYVlNXq49Q92U="}]}},"0.1.1":{"name":"map-dest","description":"Map the destination path for a file based on the given source path and options.","version":"0.1.1","homepage":"https://github.com/jonschlinkert/map-dest","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/map-dest.git"},"bugs":{"url":"https://github.com/jonschlinkert/map-dest/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"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":"*","should":"*"},"keywords":["config","configuration","dest","destination","expand","files array","files object","files","normalize","options","src","src-dest","target","task"],"verb":{"related":{"list":["files-objects","expand-config","expand-files","expand-task","expand-target"]}},"gitHead":"093b602a73847ee9e291ecf461f6cdbfcee36483","_id":"map-dest@0.1.1","_shasum":"d99e87179d506ae4903841e7a78e2ebc0b600f9f","_from":".","_npmVersion":"2.10.1","_nodeVersion":"0.12.4","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"d99e87179d506ae4903841e7a78e2ebc0b600f9f","tarball":"https://registry.npmjs.org/map-dest/-/map-dest-0.1.1.tgz","integrity":"sha512-8PaOBmKDpdnGWlwv36/FaCQsZ7KrUUd0Jx127NtOttIpc/JqLsuQGJZy6NJP3zl0aaDa1OsD195DX1r9T9Gm+g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCxaBNDkeOInqnikSna8O6mC1WFk/k8mydMIBAZ6Ui8PQIhAN7uRofDpdzWqMBNdsfK/rWIj7gUmEPxPWYRPqg8gjr1"}]}},"0.1.2":{"name":"map-dest","description":"Map the destination path for a file based on the given source path and options.","version":"0.1.2","homepage":"https://github.com/jonschlinkert/map-dest","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/map-dest.git"},"bugs":{"url":"https://github.com/jonschlinkert/map-dest/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"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":"*","should":"*"},"keywords":["config","configuration","dest","destination","expand","files array","files object","files","normalize","options","src","src-dest","target","task"],"verb":{"related":{"list":["files-objects","expand-config","expand-files","expand-task","expand-target"]}},"dependencies":{"expand-tilde":"^1.2.0","global-modules":"^0.2.0"},"gitHead":"58bd255ddc6e0ebd40ba3ed714c5279cb78c300b","_id":"map-dest@0.1.2","_shasum":"afaa415a660c0a4ad242e9d3db827e1befc857f8","_from":".","_npmVersion":"2.10.1","_nodeVersion":"0.12.4","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"afaa415a660c0a4ad242e9d3db827e1befc857f8","tarball":"https://registry.npmjs.org/map-dest/-/map-dest-0.1.2.tgz","integrity":"sha512-OBkPRQcJDFnvzJ2Li/x45fH5W3hncDEGbS2D4PhwEo4D70YO0CsVjummF+vOeVCNCuLcPBKLJMwGkBhnObiUpw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDZyfRwJ/B7cH3dsgVv6/26uGJLpXdIRqY3xsKnET77uQIhAP7dpBce2N0ogKdXPA/KBDLw69b6oocAFn51DP01FPKr"}]}},"0.1.3":{"name":"map-dest","description":"Map the destination path for a file based on the given source path and options.","version":"0.1.3","homepage":"https://github.com/jonschlinkert/map-dest","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/map-dest.git"},"bugs":{"url":"https://github.com/jonschlinkert/map-dest/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"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":"*","should":"*"},"keywords":["config","configuration","dest","destination","expand","files array","files object","files","normalize","options","src","src-dest","target","task"],"verb":{"related":{"list":["files-objects","expand-config","expand-files","expand-task","expand-target"]}},"dependencies":{"expand-tilde":"^1.2.0","global-modules":"^0.2.0"},"gitHead":"58bd255ddc6e0ebd40ba3ed714c5279cb78c300b","_id":"map-dest@0.1.3","_shasum":"49d9832a5309ddd9c1015c8b3d271cc1e498a1c1","_from":".","_npmVersion":"2.10.1","_nodeVersion":"0.12.4","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"49d9832a5309ddd9c1015c8b3d271cc1e498a1c1","tarball":"https://registry.npmjs.org/map-dest/-/map-dest-0.1.3.tgz","integrity":"sha512-TslK68OQryeIhYq6miPvJFaTRtgvziJVwyAjB3VcuaIM8CTTLCHuCzntzDyiGUbTffQDtqwsGUwQ6iyyYXapZg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCklv5LM2yPeBjAD872YZOwz2e+hZY35tyzl3cOH99gIAIhAM5qPjZiskqHepHnDDI7JKdadBPdE+qArt2+549MKIYH"}]}},"0.1.4":{"name":"map-dest","description":"Map the destination path for a file based on the given source path and options.","version":"0.1.4","homepage":"https://github.com/jonschlinkert/map-dest","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/map-dest.git"},"bugs":{"url":"https://github.com/jonschlinkert/map-dest/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"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":"*","should":"*"},"keywords":["config","configuration","dest","destination","expand","files array","files object","files","normalize","options","src","src-dest","target","task"],"verb":{"related":{"list":["files-objects","expand-config","expand-files","expand-task","expand-target"]}},"dependencies":{"expand-tilde":"^1.2.0","global-modules":"^0.2.0"},"gitHead":"89d615753258cc8a12a4e38e8c7b53b5369ff10d","_id":"map-dest@0.1.4","_shasum":"c5027c64aca67b3fb4a3bdc8401aaac63f4921c2","_from":".","_npmVersion":"2.10.1","_nodeVersion":"0.12.4","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"c5027c64aca67b3fb4a3bdc8401aaac63f4921c2","tarball":"https://registry.npmjs.org/map-dest/-/map-dest-0.1.4.tgz","integrity":"sha512-eMQU5ejLv5Au/WRT6573XnHp80cFjT+QaP7jc34mR2ISLWoFIATaEk7UsNr/a6475Z7p25iJvqBROrTCiBQjvg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCGWnw72mg1VivfvZbWz0UW9V/GckUgHjWtJyGWIsAXrAIgYg0H+r2Fcf8sjUd3jKpDMSQdQOhtidk+az89p48i/yA="}]}},"0.1.5":{"name":"map-dest","description":"Map the destination path for a file based on the given source path and options.","version":"0.1.5","homepage":"https://github.com/jonschlinkert/map-dest","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/map-dest.git"},"bugs":{"url":"https://github.com/jonschlinkert/map-dest/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"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":"*","should":"*"},"keywords":["config","configuration","dest","destination","expand","files array","files object","files","normalize","options","src","src-dest","target","task"],"verb":{"related":{"list":["files-objects","expand-config","expand-files","expand-task","expand-target"]}},"dependencies":{"global-modules":"^0.2.0","lazy-cache":"^0.2.3","normalize-path":"^2.0.0","resolve-dir":"^0.1.0"},"gitHead":"04a5a8103a212b76f09462e31924caa91cf3175e","_id":"map-dest@0.1.5","_shasum":"13a0c43a585942ebf335c22511e5f0084da89d71","_from":".","_npmVersion":"2.14.4","_nodeVersion":"4.1.1","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"13a0c43a585942ebf335c22511e5f0084da89d71","tarball":"https://registry.npmjs.org/map-dest/-/map-dest-0.1.5.tgz","integrity":"sha512-D6EQikgjJ9hDEywRmuexW5P+bKW1hLlU+kc3MQQS5ovbP7xjmgt3qdX0ET8DCFkX7rYcnUz4KT+axnp92eyIjw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHJ/YCmzqts4SNN4ijmoC0G/XsIb8OwfOp98/P5nOL+7AiAUD85K/w8XOQhPSoxr/ajOL007WwEP0eIm0jGYvUVnbQ=="}]}},"0.1.6":{"name":"map-dest","description":"Map the destination path for a file based on the given source path and options.","version":"0.1.6","homepage":"https://github.com/jonschlinkert/map-dest","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/map-dest.git"},"bugs":{"url":"https://github.com/jonschlinkert/map-dest/issues"},"license":"MIT","files":["index.js","utils.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"global-modules":"^0.2.0","lazy-cache":"^0.2.3","normalize-path":"^2.0.0","resolve-dir":"^0.1.0"},"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":"*","should":"*"},"keywords":["config","configuration","dest","destination","expand","files array","files object","files","normalize","options","src","src-dest","target","task"],"verb":{"related":{"list":["files-objects","expand-config","expand-files","expand-task","expand-target"]}},"gitHead":"0c9a43124f207e6420880f52fe6f5e544ccdc07b","_id":"map-dest@0.1.6","_shasum":"4f9dfb7ee7f0a79ef87f1ee59763cc86a4e898ad","_from":".","_npmVersion":"2.13.3","_nodeVersion":"0.12.0","_npmUser":{"name":"doowb","email":"brian.woodward@gmail.com"},"dist":{"shasum":"4f9dfb7ee7f0a79ef87f1ee59763cc86a4e898ad","tarball":"https://registry.npmjs.org/map-dest/-/map-dest-0.1.6.tgz","integrity":"sha512-AbDTz3hmcZoj6/G5LMoyPigjDS9wNKXRUjn2eeq6dfbFiaeBUrr2Ug7aEGxn7QAriAFjqHAViWYHNlaLsgbVGA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDsahYWBtwr739YcMZ9o5FFMJabVjfrvrNP72hhh3NheQIgX+j5DY0hkltT2SCDtc6Svgbq123vLhlnn1T4Js20jEc="}]},"maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"},{"name":"jonschlinkert","email":"github@sellside.com"}]},"0.1.7":{"name":"map-dest","description":"Map the destination path for a file based on the given source path and options.","version":"0.1.7","homepage":"https://github.com/jonschlinkert/map-dest","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/map-dest.git"},"bugs":{"url":"https://github.com/jonschlinkert/map-dest/issues"},"license":"MIT","files":["index.js","utils.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"extend-shallow":"^2.0.1","lazy-cache":"^0.2.4","normalize-path":"^2.0.0","resolve-dir":"^0.1.0"},"devDependencies":{"global-modules":"^0.2.0","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":"*","should":"*"},"keywords":["config","configuration","dest","destination","expand","files","files array","files object","normalize","options","src","src-dest","target","task"],"verb":{"related":{"list":["files-objects","expand-config","expand-files","expand-task","expand-target"]}},"gitHead":"f9e9d014afb46b7b55723aacd4d06c2c876b29f3","_id":"map-dest@0.1.7","_shasum":"66e6981046d10c1e56c15eb0f7f549ba6bc6f786","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.1","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"},{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"66e6981046d10c1e56c15eb0f7f549ba6bc6f786","tarball":"https://registry.npmjs.org/map-dest/-/map-dest-0.1.7.tgz","integrity":"sha512-VcG6iLzUmrLq97dtVlzZ1j0Kjos2Zoq2fH9pYGyr1cgxvk3ir4bfQQUd/XW7OpfaCYncViKhaic4zbgHVscnKQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCzqJwp7EwIPrNkkI1vUfekLob2a3duPBC5t7aqM585VwIgYZ1uhrFCsbTd29yyVFsW+e9zIrJCCptDBcv9YmkTKVE="}]}},"0.1.8":{"name":"map-dest","description":"Map the destination path for a file based on the given source path and options.","version":"0.1.8","homepage":"https://github.com/jonschlinkert/map-dest","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/map-dest.git"},"bugs":{"url":"https://github.com/jonschlinkert/map-dest/issues"},"license":"MIT","files":["index.js","utils.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"extend-shallow":"^2.0.1","lazy-cache":"^0.2.4","normalize-path":"^2.0.0","resolve-dir":"^0.1.0"},"devDependencies":{"global-modules":"^0.2.0","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":"*","should":"*"},"keywords":["config","configuration","dest","destination","expand","files","files array","files object","normalize","options","src","src-dest","target","task"],"verb":{"related":{"list":["files-objects","expand-config","expand-files","expand-task","expand-target"]}},"gitHead":"4654a983252748e5f5a6372d3ce99af996c973f7","_id":"map-dest@0.1.8","_shasum":"1fd4d94fd9e4f2785ec1adcccf04505ffbe0a608","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.1","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"},{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"1fd4d94fd9e4f2785ec1adcccf04505ffbe0a608","tarball":"https://registry.npmjs.org/map-dest/-/map-dest-0.1.8.tgz","integrity":"sha512-UHpKmOV9cx8bRF3aUJYq7f2wyV+CWGilw4HpEacdhJx3mHO695rbmeuARWApCxvSD5pQwv/sZBUoygV7PW6GGw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGxNc01iefYePqh+zRIEUl4jJON5heoW68Wmqxq19f7mAiATsOl/0OrZF7MhbOugDMoW9inrEwxu0eKRlzhzkoW4KQ=="}]}}},"readme":"# map-dest [![NPM version](https://badge.fury.io/js/map-dest.svg)](http://badge.fury.io/js/map-dest)\n\n> Map the destination path for a file based on the given source path and options.\n\n## Install\n\nInstall with [npm](https://www.npmjs.com/)\n\n```sh\n$ npm i map-dest --save\n```\n\n## Usage\n\n```js\nvar mapDest = require('map-dest');\n```\n\n## Table of contents\n\n- [docs](#docs)\n  * [src](#src)\n  * [dest](#dest)\n- [options](#options)\n  * [options.flatten](#optionsflatten)\n  * [options.ext](#optionsext)\n  * [options.cwd](#optionscwd)\n  * [options.destBase](#optionsdestbase)\n  * [options.rename](#optionsrename)\n- [Related projects](#related-projects)\n- [Test coverage](#test-coverage)\n- [Running tests](#running-tests)\n- [Contributing](#contributing)\n- [Author](#author)\n- [License](#license)\n\n## docs\n\n### src\n\nReturns an array when `src` is an array\n\n```js\nmapDest(['a.txt', 'b.txt'], 'dist');\n// [ { options: {}, src: 'a.txt', dest: 'dist/a.txt' },\n//   { options: {}, src: 'b.txt', dest: 'dist/b.txt' } ]\n```\n\n### dest\n\nCreates a dest when no `dest` argument is passed.\n\n```js\nmapDest('a/b/c.txt');\n// [{ options: {}, src: 'a/b/c.txt', dest: 'a/b/c.txt' }]\n```\n\nWhen no `dest` is defined and `src` is an array, returns an array with generated `dest` paths.\n\n```js\nmapDest(['a.txt', 'b.txt']);\n// [ { options: {}, src: 'a.txt', dest: 'a.txt' },\n//   { options: {}, src: 'b.txt', dest: 'b.txt' } ]\n```\n\n## options\n\n### options.flatten\n\nFlattens `dest` when no `dest` argument is passed:\n\n```js\nmapDest('a/b/c.txt', {flatten: true});\n// [{ options: { flatten: true }, src: 'a/b/c.txt', dest: 'c.txt' }]\n```\n\n### options.ext\n\nReplaces the destination extension with given `ext`:\n\n```js\nmapDest('a/b/c.txt', {ext: '.foo'});\n// [{ options: { ext: '.foo', extDot: 'first' },\n//   src: 'a/b/c.txt',\n//   dest: 'a/b/c.foo' }]\n```\n\n### options.cwd\n\nWhen `cwd` is defined it will be prepended to `src`:\n\n```js\nmapDest('a/b/c.txt', {cwd: 'one/two'});\n// [{ options: { cwd: 'one/two' },\n//   src: 'one/two/a/b/c.txt',\n//   dest: 'a/b/c.txt' }]\n```\n\nPrepends `cwd` to `src` and flattens `dest`:\n\n```js\nmapDest('a/b/c.txt', {cwd: 'one/two', flatten: true});\n// [{ options: { cwd: 'one/two', flatten: true },\n//   src: 'one/two/a/b/c.txt',\n//   dest: 'c.txt' }]\n```\n\nExpands tildes in `cwd` to make the path relative to the user's home directory:\n\n```js\nmapDest('a/b/c.txt', {cwd: '~/one/two'});\n// [{ options: { cwd: '/User/jonschlinkert/one/two', flatten: true },\n//   src: 'one/two/a/b/c.txt',\n//   dest: 'c.txt' }]\n```\n\nExpands `@` in `cwd` to make the path relative to global npm modules:\n\n```js\nmapDest('templates/base.hbs', {cwd: '@/boilerplate-h5bp'});\n// [ { options: { cwd: '/usr/local/lib/node_modules/boilerplate-h5bp' },\n//     src: '/usr/local/lib/node_modules/boilerplate-h5bp/templates/base.hbs',\n//     dest: 'templates/base.hbs' } ]\n```\n\n### options.destBase\n\nIf `destBase` is defined it's prepended to generated dest.\n\n```js\nmapDest('a/b/c.txt', {destBase: 'one/two'});\n// [{ options: { destBase: 'one/two' },\n//   src: 'a/b/c.txt',\n//   dest: 'one/two/a/b/c.txt' }]\n```\n\nIf `destBase` is defined, it will be prepended to dest\n\n```js\nmapDest('a/b/c.txt', 'foo', {destBase: 'one/two'});\n// [{ options: { destBase: 'one/two' },\n//   src: 'a/b/c.txt',\n//   dest: 'one/two/foo/a/b/c.txt' }]\n```\n\n### options.rename\n\nA custom `rename` function can be used to modify the generated `dest` path.\n\n```js\nmapDest('a/b/c.md', {\n  rename: function (dest, src, opts) {\n    return 'dist/' + path.basename(src) + '.html';\n  }\n});\n// [{ options: { rename: [Function] },\n//   src: 'a/b/c.md',\n//   dest: 'dist/c.html' }]\n```\n\n## Related projects\n\n* [expand-config](https://www.npmjs.com/package/expand-config): Expand tasks, targets and files in a declarative configuration. | [homepage](https://github.com/jonschlinkert/expand-config)\n* [expand-files](https://www.npmjs.com/package/expand-files): Expand glob patterns in a declarative configuration into src-dest mappings. | [homepage](https://github.com/jonschlinkert/expand-files)\n* [expand-target](https://www.npmjs.com/package/expand-target): Expand target definitions in a declarative configuration. | [homepage](https://github.com/jonschlinkert/expand-target)\n* [expand-task](https://www.npmjs.com/package/expand-task): Expand and normalize task definitions in a declarative configuration. | [homepage](https://github.com/jonschlinkert/expand-task)\n* [files-objects](https://www.npmjs.com/package/files-objects): Expand files objects into src-dest mappings. | [homepage](https://github.com/jonschlinkert/files-objects)\n\n## Test coverage\n\n```\n-----------|----------|----------|----------|----------|----------------|\nFile       |  % Stmts | % Branch |  % Funcs |  % Lines |Uncovered Lines |\n-----------|----------|----------|----------|----------|----------------|\n map-dest/ |      100 |      100 |      100 |      100 |                |\n  index.js |      100 |      100 |      100 |      100 |                |\n-----------|----------|----------|----------|----------|----------------|\nAll files  |      100 |      100 |      100 |      100 |                |\n-----------|----------|----------|----------|----------|----------------|\n```\n\n## Running tests\n\nInstall dev dependencies:\n\n```sh\n$ npm i -d && npm test\n```\n\n## Contributing\n\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/jonschlinkert/map-dest/issues/new).\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\n\nCopyright © 2015 Jon Schlinkert\nReleased under the MIT license.\n\n***\n\n_This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on October 30, 2015._","maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"},{"name":"jonschlinkert","email":"github@sellside.com"}],"time":{"modified":"2022-06-19T15:51:17.170Z","created":"2015-09-02T08:06:47.387Z","0.1.0":"2015-09-02T08:06:47.387Z","0.1.1":"2015-09-02T09:17:29.427Z","0.1.2":"2015-09-04T03:24:39.521Z","0.1.3":"2015-09-04T03:49:46.925Z","0.1.4":"2015-09-04T12:39:53.173Z","0.1.5":"2015-10-10T12:39:13.343Z","0.1.6":"2015-10-13T00:37:06.974Z","0.1.7":"2015-10-29T20:56:49.374Z","0.1.8":"2015-10-30T20:18:15.933Z"},"homepage":"https://github.com/jonschlinkert/map-dest","keywords":["config","configuration","dest","destination","expand","files","files array","files object","normalize","options","src","src-dest","target","task"],"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/map-dest.git"},"author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"bugs":{"url":"https://github.com/jonschlinkert/map-dest/issues"},"license":"MIT","readmeFilename":"README.md"}