# Install terser with npm

JavaScript parser, mangler/compressor and beautifier toolkit for ES6+. Version 5.49.0 via npm; verified 2026-07-08. Also installable with debian: sudo apt install terser.

## Install

```sh
sudo av install npm:terser
```

Additional install commands:

### Portable and language managers

- npm (100%):

```sh
npm install -g terser
```

  Evidence: local npm package metadata

## Package facts

- **Package key:** npm:terser
- **Package manager:** npm
- **Package manager page:** <https://www.npmjs.com/package/terser>
- **Version:** 5.49.0
- **Source summary:** JavaScript parser, mangler/compressor and beautifier toolkit for ES6+
- **Homepage:** <https://terser.org>
- **Repository:** <https://github.com/terser/terser>
- **Upstream docs:** <https://terser.org>
- **License:** BSD-2-Clause
- **Source archive:** <https://registry.npmjs.org/terser/-/terser-5.49.0.tgz>
- **Issue tracker:** <https://github.com/terser/terser/issues>
- **Published:** 2026-07-08T17:14:36.616Z
- **Last updated:** 2026-07-08T17:14:36.616Z
- **Generated:** 2026-08-04T22:13:35+00:00

## Executables

- terser (cli)
- terser (alias)

## Dependencies

- @jridgewell/source-map
- acorn
- commander
- source-map-support

## Build dependencies

- @ls-lint/ls-lint
- astring
- eslint
- eslump
- esm
- mocha
- pre-commit
- rollup
- semver
- source-map

## Install behavior

- Post-install hook: not defined
- Lifecycle scripts: prepare
- Bottle: not available

## Freshness

- Page generated: 2026-08-04
- Package-manager version: 5.49.0
- Package-manager updated: 2026-07-08
- Local data: ok
- Upstream repository: https://github.com/terser/terser
- info: No cached GitHub release or tag data was available.

## Security Notes

No matching local secret-handling manifest was found for terser. Package metadata is still published here so future coverage has a stable package URL.


## Source Database Details

- **Source Database:** npm registry
- **Dist Tags:** Beta: 5.0.0-beta.2, Latest: 5.49.0
- **Version Count:** 204
- **Maintainers:** fabiosantoscode
- **Author:** Mihai Bazon
- **Publisher:** fabiosantoscode
- **Engines:** Node: >=10
- **Integrity:** sha512-SNiDnXyHSrxVcIOtVbULzcTmniUiwcV7Nwdyj1twVubeTmbjoa8p69KKDpfkdoOavuM4/GRm1+ykI8qqnavHoA==
- **Shasum:** 30b341fdf70cfc98486965125ae660fda8403670
- **Unpacked Size:** 2,309,417
- **File Count:** 0
- **Created At:** 2018-05-12T13:21:59.686Z
- **Latest Published At:** 2026-07-08T17:14:36.616Z
- **Modified At:** 2026-07-08T17:14:36.736Z

## Other Package-Manager Records

- Debian apt - terser - 5.38.0-1: normalized package name match | Debian stable package indexes: terser from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | parser/mangler/compressor for ES6+ - CLI tool | https://terser.org/
- Nix - terser: normalized package name match | nixpkgs package indexes: pkgs/by-name/te/terser/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - terser - 5.19.2-1: normalized package name match | Ubuntu 24.04 LTS package indexes: terser from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | parser/mangler/compressor for ES6+ - CLI tool | https://terser.org/


## Related links

- [Web development packages](https://pkg.so/web-dev-tools/) - Matched curated package taxonomy and local package facts.
- [uglify-js](https://pkg.so/npm/uglify-js/) - Both packages touch the same language runtime or ecosystem. Shared terms: beautifier, cli, compressor, developer, developer-tools.
- [html-minifier-terser](https://pkg.so/npm/html-minifier-terser/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, commander, compressor, developer, developer-tools.
- [node-minify](https://pkg.so/npm/node-minify/) - Both packages touch the same language runtime or ecosystem. Shared terms: build, cli, commander, compressor, developer.

## Sources

- pkg.so package database
- package-page enrichment
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
