{"library":"terser","type":"library","category":null,"description":"Terser is a powerful JavaScript parser, mangler, and compressor toolkit designed for modern ECMAScript (ES6+). It currently stands at version 5.46.1 and is under active development, serving as the maintained successor to the now-abandoned `uglify-es` project and `uglify-js` (which lacks ES6+ support). Terser largely retains API and CLI compatibility with its predecessors, making it a familiar choice for developers. Key differentiators include its robust support for modern JavaScript syntax and ongoing maintenance, addressing the limitations of older minifiers. While `terser` previously offered beautification features, these are being removed in favor of dedicated tools like Prettier. The project recommends using it in conjunction with bundlers like RollupJS for optimal output size.","language":"javascript","status":"active","version":"5.46.1","tags":["javascript","uglify","terser","uglify-es","uglify-js","minify","minifier","ecmascript","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install terser","imports":["import { minify } from 'terser';","import type { MinifyOptions } from 'terser';","import * as Terser from 'terser';"]},{"cmd":"yarn add terser","imports":[]},{"cmd":"pnpm add terser","imports":[]}],"homepage":"https://terser.org","github":"https://github.com/terser/terser","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/terser","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/terser/compatibility"}}