Skip to main content
FOSSA Logo
Skip to package details

terser

npm9.4k GitHub stars

v5.51.2 · Aug 2026 · BSD-2-Clause (top-level declared license)

npm install terser
  • No known CVEs
  • 313.4M downloads/mo
  • 210 versions

Description

🗜 JavaScript parser, mangler and compressor toolkit for ES6+

Licenses

Declared license

BSD-2-Clause (top-level declared license of terser)

Transitive dependency licenses

terser pulls in 10 transitive dependencies across 2 distinct licenses, all permissive.

LicenseCategoryDependencies
MITPermissive9 of 10
BSD-3-ClausePermissive1 of 10

This view is derived from declared package metadata, and a full FOSSA scan detects licenses that declared metadata misses. Scan free.

License and vulnerability information on this page is derived from public package metadata and public advisory databases. It is not legal advice, and it reflects the top-level declared license only. Verify the license and terms of any software for your own needs.

Need terser approved? Get the full license and vulnerability report for your codebase. Scan free.

Scan free

Vulnerabilities

No known CVEs across published versions

Version history

Published versions
VersionPublishedLicense
5.51.2Aug 2026BSD-2-Clause
5.51.1Aug 2026
5.51.0Aug 2026
5.50.0Aug 2026
5.49.2Aug 2026
5.49.1Aug 2026
5.49.0Jul 2026
5.48.0May 2026
5.47.1May 2026
5.47.0May 2026
5.46.2Apr 2026
5.46.1Mar 2026
5.46.0Jan 2026
5.45.0Jan 2026
5.44.1Nov 2025
5.44.0Sep 2025
5.43.1Jun 2025
5.43.0Jun 2025
5.42.0Jun 2025
5.41.0Jun 2025
5.40.0May 2025
5.39.2May 2025
5.39.1May 2025
5.39.0Feb 2025
5.38.2Feb 2025
25 older releases
Older published versions
VersionPublishedLicense
5.38.1Feb 2025
5.38.0Feb 2025
5.37.0Dec 2024
5.36.0Oct 2024
5.35.0Oct 2024
5.34.1Sep 2024
5.34.0Sep 2024
5.33.0Sep 2024
5.32.0Sep 2024
5.31.6Aug 2024
5.31.5Aug 2024
5.31.4Aug 2024
5.31.3Jul 2024
5.31.2Jul 2024
5.31.1Jun 2024
5.31.0Apr 2024
5.30.4Apr 2024
5.30.3Apr 2024
5.30.2Apr 2024
5.30.1Apr 2024
5.30.0Mar 2024
5.29.2Mar 2024
5.29.1Mar 2024
5.29.0Mar 2024
5.28.1Feb 2024

Latest pre-release: 5.6.0-beta (Feb 2021). Pre-releases (canary, beta, release candidate and similar) are not listed.

npm install terser resolves to the 5.x line today. Older major lines may still receive fixes.

Direct dependencies

4 direct dependencies, 10 in total including transitive. Licenses across the full tree are summarized under Licenses.

Direct dependencies
PackageVersion rangeLicense
@jridgewell/source-map^0.3.3MIT
acorn^8.15.0MIT
commander^2.20.0MIT
source-map-support~0.5.20MIT

Based on what each package declares in its published metadata. The dependencies your build actually installs can differ, and a FOSSA scan of your project resolves the full tree.

Popularity

Downloads last month
313.4M
Known dependents in this corpus
87,842
GitHub stars
9.4k
OpenSSF score
5.8 / 10

FAQ

What is the latest version of terser?
The latest version of terser is 5.51.2, published August 2026.
What license is terser under?
terser declares BSD-2-Clause as its top-level declared license. Its dependency tree spans 2 distinct licenses.
Does terser have known vulnerabilities?
No known CVEs are recorded against published versions of terser.
How do I install terser?
Install terser with npm install terser.
How do I generate an SBOM that includes terser?
FOSSA's SBOM generator produces SPDX or CycloneDX output for a codebase that includes terser. Generate an SPDX or CycloneDX SBOM free.

Dependency graph and package metadata from deps.dev (Google Open Source Insights), used under CC BY 4.0.

Download counts from the npm public registry API.

Repository stars from the GitHub API.

OpenSSF Scorecard results from deps.dev.

License and vulnerability information on this page is derived from public package metadata and public advisory databases. It is not legal advice, and it reflects the top-level declared license only. Verify the license and terms of any software for your own needs.