{"id":15732620,"url":"https://github.com/jonschlinkert/relative-dest","last_synced_at":"2026-02-26T00:34:27.336Z","repository":{"id":24861832,"uuid":"28277293","full_name":"jonschlinkert/relative-dest","owner":"jonschlinkert","description":"Calculate the relative path from a file's destination path to another directory or file. Useful in template helpers, middleware and plugins.","archived":false,"fork":false,"pushed_at":"2014-12-20T19:53:56.000Z","size":104,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-08T11:36:27.076Z","etag":null,"topics":["build","dest","files","path","relative","static"],"latest_commit_sha":null,"homepage":"https://github.com/jonschlinkert","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jonschlinkert.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-12-20T19:53:45.000Z","updated_at":"2021-04-12T22:45:37.000Z","dependencies_parsed_at":"2022-08-20T17:31:31.350Z","dependency_job_id":null,"html_url":"https://github.com/jonschlinkert/relative-dest","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonschlinkert%2Frelative-dest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonschlinkert%2Frelative-dest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonschlinkert%2Frelative-dest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonschlinkert%2Frelative-dest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jonschlinkert","download_url":"https://codeload.github.com/jonschlinkert/relative-dest/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243351153,"owners_count":20276894,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["build","dest","files","path","relative","static"],"created_at":"2024-10-04T00:21:18.494Z","updated_at":"2026-02-26T00:34:22.289Z","avatar_url":"https://github.com/jonschlinkert.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# relative-dest [![NPM version](https://badge.fury.io/js/relative-dest.svg)](http://badge.fury.io/js/relative-dest)\n\n\u003e 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//=\u003e '../../public'\n\nrelative('dist/a/b/c.md', 'assets');\n//=\u003e '../../../assets'\n\nrelative('a.md', 'dist/public/css');\n//=\u003e 'dist/public/css'\n\nrelative('a/b/c/', 'a/b/c/');\n//=\u003e '.'\n```\n\n## API\n\n\n\n## Run tests\n\nInstall dev dependencies:\n\n```bash\nnode i -d \u0026\u0026 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._","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonschlinkert%2Frelative-dest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjonschlinkert%2Frelative-dest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonschlinkert%2Frelative-dest/lists"}