Skip to content
CDGet
  • Home
  • Projects
  1. Home
  2. All projects
  3. Terser Glob

Terser Glob

Utility

A small command-line wrapper around Terser that accepts glob patterns, so a whole directory is minified in one command instead of one file at a time.

Documentation (opens in a new tab)Source code (opens in a new tab)

About this project

Terser Glob is the terser command line with glob patterns added. The terser CLI takes files one at a time, which is why a build script that minifies a folder ends up as a shell loop or a hand-written list of paths, and this module removes that step.

Usage is the terser usage: replace the command and pass the same options. A path can be a glob pattern in quotes, several patterns can be given at once, individual files still work, and an output path is a directory the results are written into. The terser package comes as a dependency, so nothing else has to be installed alongside it.

It exists because terser has carried the request for this for years, and a build script should not have to grow a loop around what is a one-word change to the command.

Features

  • TypeScript types

  • Verified by tests

  • Command-line interface

Project information

Started
2024
License
MIT (opens in a new tab)
Programming languages
JavaScript
Tags
terserminifyglobclibuild-tool
Packages
terser-glob (opens in a new tab)npm
Popularity
4
GitHub stars
880
npm downloads
Terser Glob — npm downloads, Last 30 days
npm downloads
Jul 3131
Aug 121
Aug 216
Aug 335
Aug 435
Aug 542
Aug 661
Aug 723
Aug 84
Aug 912
Aug 1030
Aug 1121
Aug 1271
Aug 1319
Aug 140
Aug 1513
Aug 1617
Aug 1740
Aug 1858
Aug 1911
Aug 2023
Aug 2111
Aug 220
Aug 2311
Aug 2471
Aug 2564
Aug 2629
Aug 2720
Aug 2819
Aug 2972
Last 30 days
ContactDonate
The projects listed here are open source under the MIT License.© 2026 CDGet. All rights reserved.