Skip to content
JS
Package

astring

JavaScript code generator from an ESTree-compliant AST.

v1.9.0, 25 Aug 2024MITESM + CommonJSTypes: Bundled
$ npm install astring

Key numbers

As of 25 Sept 2026
Weekly downloads
15.9m
+362% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
0
Direct, from package.json
Last release
2 years ago
v1.9.0
GitHub stars
-
Open issues / PRs
- / -
Contributors
-
Commits, last 52 weeks
-

Downloads

Last week 2026-09-15 to 2026-09-21
010m20m30mSept 2025Mar 2026Sept 2026High 24.4m (25 Aug 2026)Low 2.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.

15,913,642 downloads last week, 77,062,145 in the last month. The 12-month change of +362% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
083 in total
Latest version
1.9.0, 25 Aug 20242 years ago
First published
3 Aug 2015
Last push to GitHub
-
Repository archived
-
Open issues
-
Open pull requests
-
Commits, last 52 weeks
-
Dependents on npm
406

Major versions

  1. v1 first release 1.0.0, 1 Apr 2017
  2. v0 first release 0.0.1, 3 Aug 2015

Recent releases

VersionPublished
1.9.025 Aug 2024
1.8.630 May 2023
1.8.519 May 2023
1.8.421 Dec 2022
1.8.328 Apr 2022
1.8.228 Apr 2022
1.8.121 Nov 2021
1.8.021 Nov 2021
1.7.621 Nov 2021
1.7.52 Jun 2021
1.7.47 Apr 2021
1.7.35 Apr 2021
1.7.25 Apr 2021
1.7.15 Apr 2021
Module format
ESM + CommonJSFrom package.json type, main and exports fields
TypeScript types
Bundled
Node.js engine range
Not declared
Runtimes
-
Unpacked size (npm)
267 kB
Dependencies (0)
None
npm install astring
  • jsDelivrhttps://cdn.jsdelivr.net/npm/astring@1.9.0/
  • unpkghttps://unpkg.com/astring@1.9.0/
  • esm.shhttps://esm.sh/astring@1.9.0
Sources: npm registry, npm downloads API. Data fetched 25 Sept 2026.

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