Skip to content
JS
Package

rootpath

Little helper to make node.js require relative to your project root

v0.1.2, 29 Apr 2014MITCommonJSTypes: None
$ npm install rootpath

Key numbers

As of 25 Sept 2026
Weekly downloads
313.4k
-2% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
0
Direct, from package.json
Last release
12 years ago
v0.1.2
GitHub stars
45
10 forks
Open issues / PRs
3 / 2
Contributors
-
Commits, last 52 weeks
0

Downloads

Last week 2026-09-15 to 2026-09-21
0200k400k600kSept 2025Mar 2026Sept 2026High 502.4k (25 Aug 2026)Low 190.2k (23 Dec 2025)
Weekly npm downloads, one point per week, weeks starting 23 Sept 2025 to 15 Sept 2026. The y axis starts at zero.

313,358 downloads last week, 1,589,032 in the last month. The 12-month change of -2% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
03 in total
Latest version
0.1.2, 29 Apr 201412 years ago
First published
23 Jun 2013
Last push to GitHub
27 Jun 20192,646 days before the snapshot
Repository archived
No
Open issues
3
Open pull requests
2
Commits, last 52 weeks
0
Dependents on npm
-

Major versions

  1. v0 first release 0.1.0, 23 Jun 2013

Recent releases

VersionPublished
0.1.229 Apr 2014
0.1.123 Jun 2013
0.1.023 Jun 2013
Module format
CommonJSFrom package.json type, main and exports fields
TypeScript types
None
Node.js engine range
Not declared
Runtimes
-
Unpacked size (npm)
-
Dependencies (0)
None
npm install rootpath
  • jsDelivrhttps://cdn.jsdelivr.net/npm/rootpath@0.1.2/
  • unpkghttps://unpkg.com/rootpath@0.1.2/
  • esm.shhttps://esm.sh/rootpath@0.1.2
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Not indexed (discovery only): no category.