Skip to content
JS
Package

path-starts-with

Returns true if a filepath starts with the given string. Works with windows and posix/unix paths.

v2.0.1, 29 Jul 2023MITCommonJSTypes: NoneStrings and textFiles and file systems
$ npm install path-starts-with

Key numbers

As of 25 Sept 2026
Weekly downloads
36.4k
-33% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
0
Direct, from package.json
Last release
3 years ago
v2.0.1
GitHub stars
6
1 forks
Open issues / PRs
0 / 0
Contributors
-
Commits, last 52 weeks
0

Downloads

Last week 2026-09-15 to 2026-09-21
020k40k60k80kSept 2025Mar 2026Sept 2026High 77k (17 Mar 2026)Low 21.8k (11 Aug 2026)
Weekly npm downloads, one point per week, weeks starting 23 Sept 2025 to 15 Sept 2026. The y axis starts at zero.

36,411 downloads last week, 147,810 in the last month. The 12-month change of -33% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
-
Latest version
2.0.1, 29 Jul 20233 years ago
First published
-
Last push to GitHub
29 Jul 20231,153 days before the snapshot
Repository archived
No
Open issues
0
Open pull requests
0
Commits, last 52 weeks
0
Dependents on npm
8

Major versions

-

Recent releases

-

Module format
CommonJSFrom package.json type, main and exports fields
TypeScript types
None
Node.js engine range
>=8
Runtimes
-
Unpacked size (npm)
9.5 kB
Dependencies (0)
None
npm install path-starts-with
  • jsDelivrhttps://cdn.jsdelivr.net/npm/path-starts-with@2.0.1/
  • unpkghttps://unpkg.com/path-starts-with@2.0.1/
  • esm.shhttps://esm.sh/path-starts-with@2.0.1
PackageWeekly downloadsGzipLast releaseModuleComparison
underscore.string2.4m-4 years agoCommonJS-
normalize-text32.4k-1 year agoESM + CommonJS-
i645.6k-5 years agoCommonJS-
@wessberg/stringutil53.2k-6 years agoESM + CommonJS-
@supercharge/strings8.3k-3 years agoCommonJS-
inflection3.8m-1 year agoCommonJS-
@thi.ng/strings7.9k-30 days agoESM only-
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Indexed.