Skip to content
JS
Package

ast-module-types

Collection of useful helper functions when trying to determine module type (CommonJS or AMD) properties of an AST node.

v7.0.0, 19 May 2026MITESM onlyTypes: NoneUtility libraries
$ npm install ast-module-types

Key numbers

As of 25 Sept 2026
Weekly downloads
3.6m
+25% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
0
Direct, from package.json
Last release
4 months ago
v7.0.0
GitHub stars
12
3 forks
Open issues / PRs
0 / 1
Contributors
-
Commits, last 52 weeks
34

Downloads

Last week 2026-09-15 to 2026-09-21
02m4m6mSept 2025Mar 2026Sept 2026High 5.4m (28 Jul 2026)Low 1.4m (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.

3,627,033 downloads last week, 18,644,289 in the last month. The 12-month change of +25% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
225 in total
Latest version
7.0.0, 19 May 20264 months ago
First published
28 Mar 2014
Last push to GitHub
10 Sept 202614 days before the snapshot
Repository archived
No
Open issues
0
Open pull requests
1
Commits, last 52 weeks
34
Dependents on npm
16

Major versions

  1. v7 first release 7.0.0, 19 May 2026
  2. v6 first release 6.0.0, 9 Apr 2024
  3. v5 first release 5.0.0, 4 May 2023
  4. v4 first release 4.0.0, 19 Mar 2023
  5. v3 first release 3.0.0, 22 Feb 2022
  6. v2 first release 2.0.0, 25 Oct 2014
  7. v1 first release 1.0.0, 28 Mar 2014

Recent releases

VersionPublished
7.0.019 May 2026
6.0.29 May 2026
6.0.11 Feb 2025
6.0.09 Apr 2024
5.0.04 May 2023
4.0.019 Mar 2023
3.0.022 Feb 2022
2.7.11 Nov 2020
2.7.026 Oct 2020
2.6.023 Nov 2019
2.5.04 Feb 2019
2.4.025 Sept 2018
2.3.216 Jun 2016
2.3.116 Jun 2016
Module format
ESM onlyFrom package.json type, main and exports fields
TypeScript types
None
Node.js engine range
>=20.19.0 || >=22.12.0
Runtimes
-
Unpacked size (npm)
11 kB
Dependencies (0)
None
npm install ast-module-types
  • jsDelivrhttps://cdn.jsdelivr.net/npm/ast-module-types@7.0.0/
  • unpkghttps://unpkg.com/ast-module-types@7.0.0/
  • esm.shhttps://esm.sh/ast-module-types@7.0.0
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Indexed.