Skip to content
JS
Package

is-file-esm

Determines whether a Node file is a Module (`import`) or a Script (`require`)

v1.0.0MITCommonJSTypes: None
$ npm install is-file-esm

Key numbers

As of 25 Sept 2026
Weekly downloads
242.6k
-21% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
1
Direct, from package.json
Last release
-
v1.0.0
GitHub stars
-
Open issues / PRs
- / -
Contributors
-
Commits, last 52 weeks
-

Downloads

Last week 2026-09-15 to 2026-09-21
0100k200k300k400kSept 2025Mar 2026Sept 2026High 385.3k (10 Mar 2026)Low 135.2k (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.

242,628 downloads last week, 970,224 in the last month. The 12-month change of -21% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
-
Latest version
1.0.0
First published
-
Last push to GitHub
-
Repository archived
-
Open issues
-
Open pull requests
-
Commits, last 52 weeks
-
Dependents on npm
-

Major versions

-

Recent releases

-

Module format
CommonJSFrom package.json type, main and exports fields
TypeScript types
None
Node.js engine range
Not declared
Runtimes
-
Unpacked size (npm)
33 kB
Dependencies (1)
read-pkg-up
npm install is-file-esm
  • jsDelivrhttps://cdn.jsdelivr.net/npm/is-file-esm@1.0.0/
  • unpkghttps://unpkg.com/is-file-esm@1.0.0/
  • esm.shhttps://esm.sh/is-file-esm@1.0.0
Sources: npm registry, npm downloads API. Data fetched 25 Sept 2026.

Indexability: Not indexed (discovery only): GitHub data not fetched yet; no category.