{"_id":"relative-dest","_rev":"77374","name":"relative-dest","description":"Calculate the relative path from a file's destination path to another directory or file.","dist-tags":{"latest":"0.1.0"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"time":{"modified":"2021-06-03T10:24:53.000Z","created":"2014-12-20T19:54:13.235Z","0.1.0":"2014-12-20T19:54:13.235Z"},"users":{},"author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/relative-dest.git"},"versions":{"0.1.0":{"name":"relative-dest","description":"Calculate the relative path from a file's destination path to another directory or file.","version":"0.1.0","homepage":"https://github.com/jonschlinkert/relative-dest","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/relative-dest.git"},"bugs":{"url":"https://github.com/jonschlinkert/relative-dest/issues"},"license":{"type":"MIT","url":"https://github.com/jonschlinkert/relative-dest/blob/master/LICENSE-MIT"},"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha -R spec"},"dependencies":{"relative":"^1.1.0"},"devDependencies":{"mocha":"*","should":"*"},"keywords":["assets","calculate","dir","directory","file","filepath","fp","path","public","resolve","url"],"gitHead":"30cc585abecaaf1f7d0bd5776ed34b1ea4203635","_id":"relative-dest@0.1.0","_shasum":"ba055b4c2a021f71de92a582eb766dd7b3b0c618","_from":".","_npmVersion":"1.4.23","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"ba055b4c2a021f71de92a582eb766dd7b3b0c618","size":2066,"noattachment":false,"key":"/relative-dest/-/relative-dest-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/relative-dest/download/relative-dest-0.1.0.tgz"},"directories":{},"publish_time":1419105253235,"_cnpm_publish_time":1419105253235,"_hasShrinkwrap":false}},"readme":"# relative-dest [![NPM version](https://badge.fury.io/js/relative-dest.svg)](http://badge.fury.io/js/relative-dest)\n\n> Calculate the relative path from a file's destination path to another directory or file.\n\n## Install with [npm](npmjs.org)\n\n```bash\nnpm i relative-dest --save\n```\n\n## Usage\n\n```js\nvar relative = require('relative-dest');\n\nrelative('dist/a/b/c.md', 'dist/public');\n//=> '../../public'\n\nrelative('dist/a/b/c.md', 'assets');\n//=> '../../../assets'\n\nrelative('a.md', 'dist/public/css');\n//=> 'dist/public/css'\n\nrelative('a/b/c/', 'a/b/c/');\n//=> '.'\n```\n\n## API\n\n\n\n## Run tests\n\nInstall dev dependencies:\n\n```bash\nnode i -d && mocha\n```\n\n## Contributing\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/jonschlinkert/relative-dest/issues)\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  \nReleased under the MIT license\n\n***\n\n_This file was generated by [verb](https://github.com/assemble/verb) on December 20, 2014._","_attachments":{},"homepage":"https://github.com/jonschlinkert/relative-dest","bugs":{"url":"https://github.com/jonschlinkert/relative-dest/issues"},"license":{"type":"MIT","url":"https://github.com/jonschlinkert/relative-dest/blob/master/LICENSE-MIT"}}