# relative-dest

> Calculate the relative path from a file's destination path to another directory or file.

Latest version **0.1.0** (published 2014-12-20) · MIT license · 0 weekly downloads

## Install

```sh
npm install relative-dest
pnpm add relative-dest
yarn add relative-dest
bun add relative-dest
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2014-12-20 |
| First published | 2014-12-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.10.0 |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 5 |
| Author | Jon Schlinkert |
| Maintainers | jonschlinkert |
| Keywords | assets, calculate, dir, directory, file, filepath, fp, path, public, resolve, url |

## Links

- npm: https://www.npmjs.com/package/relative-dest
- Repository: https://github.com/jonschlinkert/relative-dest
- Issues: https://github.com/jonschlinkert/relative-dest/issues
- npm.io page: https://npm.io/package/relative-dest

## Dependencies (1)

- [relative](https://npm.io/package/relative.md) ^1.1.0

## Alternatives

- [base64url](https://npm.io/package/base64url.md) — 6.1M weekly downloads
- [get-installed-path](https://npm.io/package/get-installed-path.md) — 502.9K weekly downloads
- [@uppy/url](https://npm.io/package/@uppy/url.md) — 185.8K weekly downloads
- [@d3fc/d3fc-shape](https://npm.io/package/@d3fc/d3fc-shape.md) — 16.2K weekly downloads
- [localizer](https://npm.io/package/localizer.md) — 226 weekly downloads

## Recent versions

- 0.1.0 (latest) — 2014-12-20

## README

# relative-dest [![NPM version](https://badge.fury.io/js/relative-dest.svg)](http://badge.fury.io/js/relative-dest)

> Calculate the relative path from a file's destination path to another directory or file.

## Install with [npm](npmjs.org)

```bash
npm i relative-dest --save
```

## Usage

```js
var relative = require('relative-dest');

relative('dist/a/b/c.md', 'dist/public');
//=> '../../public'

relative('dist/a/b/c.md', 'assets');
//=> '../../../assets'

relative('a.md', 'dist/public/css');
//=> 'dist/public/css'

relative('a/b/c/', 'a/b/c/');
//=> '.'
```

## API



## Run tests

Install dev dependencies:

```bash
node i -d && mocha
```

## Contributing
Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/jonschlinkert/relative-dest/issues)

## Author

**Jon Schlinkert**
 
+ [github/jonschlinkert](https://github.com/jonschlinkert)
+ [twitter/jonschlinkert](http://twitter.com/jonschlinkert) 

## License
Copyright (c) 2014 Jon Schlinkert  
Released under the MIT license

***

_This file was generated by [verb](https://github.com/assemble/verb) on December 20, 2014._

---
_Source: https://npm.io/package/relative-dest · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
