Skip to content
JS
Package

hastscript

hast utility to create trees

v9.0.1, 19 Feb 2025MITESM onlyTypes: BundledMarkdown
$ npm install hastscript

Key numbers

As of 25 Sept 2026
Weekly downloads
22.3m
+182% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
5
Direct, from package.json
Last release
1 year ago
v9.0.1
GitHub stars
200
14 forks
Open issues / PRs
0 / 1
Contributors
-
Commits, last 52 weeks
0

Downloads

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

22,321,701 downloads last week, 112,211,275 in the last month. The 12-month change of +182% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
022 in total
Latest version
9.0.1, 19 Feb 20251 year ago
First published
24 Feb 2016
Last push to GitHub
19 Mar 2026189 days before the snapshot
Repository archived
No
Open issues
0
Open pull requests
1
Commits, last 52 weeks
0
Dependents on npm
339

Major versions

  1. v9 first release 9.0.0, 21 Jan 2024
  2. v8 first release 8.0.0, 1 Aug 2023
  3. v7 first release 7.0.0, 27 Apr 2021
  4. v6 first release 6.0.0, 13 Jul 2020
  5. v5 first release 5.0.0, 7 Nov 2018
  6. v4 first release 4.0.0, 17 Jul 2018
  7. v3 first release 3.0.0, 14 Jun 2016
  8. v2 first release 2.0.0, 12 Apr 2016
  9. v1 first release 1.0.0, 24 Feb 2016

Recent releases

VersionPublished
9.0.119 Feb 2025
9.0.021 Jan 2024
8.0.01 Aug 2023
7.2.04 Jan 2023
7.1.010 Oct 2022
7.0.25 Aug 2021
7.0.16 May 2021
7.0.027 Apr 2021
6.0.013 Jul 2020
5.1.228 Feb 2020
5.1.110 Nov 2019
5.1.029 May 2019
5.0.126 May 2019
5.0.07 Nov 2018
Module format
ESM onlyFrom package.json type, main and exports fields
TypeScript types
Bundled
Node.js engine range
Not declared
Runtimes
-
Unpacked size (npm)
48 kB
Dependencies (5)
@types/hastproperty-informationcomma-separated-tokensspace-separated-tokenshast-util-parse-selector
npm install hastscript

CDN

jsDelivr: 78.6k requests in 30 days
  • jsDelivrhttps://cdn.jsdelivr.net/npm/hastscript@9.0.1/
  • unpkghttps://unpkg.com/hastscript@9.0.1/
  • esm.shhttps://esm.sh/hastscript@9.0.1
PackageWeekly downloadsGzipLast releaseModuleComparison
hast-util-properties-to-mdx-jsx-attributes421.3k-6 months agoESM only-
rehype-mdx-code-props387.4k-2 years agoESM only-
remark-rehype32.1m-1 year agoESM only-
hast-util-minify-whitespace2.7m-1 year agoESM only-
Sources: npm registry, npm downloads API, GitHub API, jsDelivr. Data fetched 25 Sept 2026.

Indexability: Indexed.