npm · npm:relative
relative active
Get the relative filepath from path A to path B. Calculates from file-to-directory, file-to-file, directory-to-file, and directory-to-directory.
The latest stable version of relative is 3.0.2, published on 2015-11-12. Verified by Vigia on 2026-11-12.
| Latest stable version | 3.0.2 |
|---|---|
| Published | 2015-11-12 06:53:57 UTC |
| Install | npm install relative@latest |
| Requires (engines) | {"node":">= 0.8.0"} |
| Peer dependencies | — |
| Dist-tags | latest: 3.0.2 |
| License | MIT |
| Advisories on latest version | none known |
| Last verified | 2026-11-12 13:01:09 UTC |
| Sources | api.deps.dev, registry.npmjs.org, registry.npmjs.org |
Ask your AI assistant to check this
AI models are trained up to a date, so they can be wrong about versions, deprecations and vulnerabilities. Paste this into Claude, ChatGPT, Perplexity or Cursor and it will answer with the verified data on this page:
Before answering about the npm package "relative", check Vigia (verified, dated facts): https://vigia.coredls.cloud/v1/packages/npm/relative . For my whole project use https://vigia.coredls.cloud/context
Using an AI coding agent every day? Connect Vigia once and it checks this by itself.
Maintenance
| Activity | dormant |
|---|---|
| Last stable release | 2015-11-12 06:53:57 UTC · 4018 days ago |
| Stable releases in the last 12 months | 0 |
| Published versions | 15 |
Heuristic based only on release dates; it does not measure issue or security response times.
Version history
| Version | Published |
|---|---|
3.0.2 | 2015-11-12 06:53:57 UTC |
3.0.1 | 2015-07-09 09:11:48 UTC |
3.0.0 | 2015-04-06 03:24:27 UTC |
2.0.0 | 2015-02-21 02:29:55 UTC |
1.2.0 | 2014-12-25 19:51:30 UTC |
1.1.0 | 2014-12-20 19:29:01 UTC |
1.0.1 | 2014-11-17 07:55:33 UTC |
1.0.0 | 2014-11-17 07:53:57 UTC |
0.1.6 | 2014-07-06 13:07:14 UTC |
0.1.5 | 2014-07-06 12:44:56 UTC |
0.1.4 | 2014-04-20 10:01:15 UTC |
0.1.3 | 2014-04-05 01:52:41 UTC |
0.1.2 | 2014-02-08 20:28:57 UTC |
0.1.1 | 2014-02-08 20:20:59 UTC |
0.1.0 | 2014-02-02 09:39:46 UTC |
Showing the 15 most recent of 15 versions. JSON
Version compatibility
Newest stable version that declares support for each runtime version (from the requirements published with each version).
| Runtime | Newest compatible version |
|---|---|
node 16 | 3.0.2 |
node 18 | 3.0.2 |
node 20 | 3.0.2 |
node 22 | 3.0.2 |
node 24 | 3.0.2 |
Give your AI agent these facts
Vigia is a free MCP server: your coding agent checks versions, breaking changes and vulnerabilities before it writes code. No signup, no API key.
claude mcp add --transport http vigia https://vigia.coredls.cloud/mcp
Add to CursorAdd to VS Code★ Star on GitHub
Any other MCP client
{ "mcpServers": { "vigia": { "url": "https://vigia.coredls.cloud/mcp" } } }Agent skill (SKILL.md): tells the agent when to use Vigia · GitHub Action for pull requests
Frequently asked questions
What is the latest version of relative?
The latest stable version of relative is 3.0.2, published on 2015-11-12. Verified by Vigia on 2026-11-12.
How do I install the latest version of relative?
Run npm install relative@latest. The latest stable version is 3.0.2 (verified 2026-11-12).
Is relative deprecated?
No. relative is not marked as deprecated in the registry.
Which Node.js version does relative require?
relative 3.0.2 declares this requirement: {"node":">= 0.8.0"}.
Does relative 3.0.2 have known vulnerabilities?
No known advisories affect relative 3.0.2 according to the data Vigia checks.
Is relative still maintained?
relative published 0 stable releases in the last 12 months; the most recent was 4018 days ago. Activity: dormant.
Observed changes
No changes observed yet since Vigia started tracking this package.
Related packages
- @badeball/cypress-cucumber-preprocessor
- @fullcalendar/premium-common
- @clawdbot/lobster
- after-all-results
- streamifier
- css-to-xpath
- @stdlib/utils-next-tick
- imap-simple
- tss-react
- @wojtekmaj/enzyme-adapter-utils
- @google-cloud/translate
- x-xss-protection
Badges for your README
Show the latest version, maintenance status and deprecation status of this package. Copy the Markdown:
[](https://vigia.coredls.cloud/npm/relative) [](https://vigia.coredls.cloud/npm/relative) [](https://vigia.coredls.cloud/npm/relative)
For agents
GET https://vigia.coredls.cloud/v1/packages/npm/relative
GET https://vigia.coredls.cloud/v1/packages/npm/relative/versions/{version}