
Security News
Crates.io Implements Trusted Publishing Support
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
glob-uglifyjs
Advanced tools
Uglify JS files with glob pattern.
$ npm install glob-uglifyjs
js
files with node-glob pattern.$ glob-uglifyjs -h
Argument | Type | Default | Description |
---|---|---|---|
-h, --help | boolean | false | Show help. |
-p, --pattern [*] | string | Files glob pattern. | |
-v, --version | boolean | false | Show version number. |
-c, --config | string | glob-uglifyjs.config.json | Path to JSON config file. |
[*] - argument required.
{
"pattern": "/**/*",
"options": {
"UseMinExt": false,
"MinifyOptions": {},
"OutDir": "dist-min",
"RootDir": "dist",
"RemoveSource": false,
"Debug": false
}
}
Property | Type | Description |
---|---|---|
pattern[*] | string | Files glob pattern. |
options | Options | glob-uglifyjs options. |
[*] - property required.
Option | Type | Default | Description |
---|---|---|---|
UseMinExt | boolean | true | Use min extensions in output files. |
MinifyOptions | Object | {} | UglifyJS minify options. Read more. |
OutDir | string | | Redirect output structure to the directory. |
RootDir | string | | Specifies the root directory of input files. |
RemoveSource | boolean | false | Remove all source files specified by glob pattern. |
Debug | boolean | false | Show errors details information. |
Silence | boolean | false | Silence all messages in console. |
Exclude | string | string[] | undefined | Add a pattern or an array of glob patterns to exclude matches. Read more in node-glob options ignore . |
Cwd | string | process.cwd() | Current working directory. |
Released under the MIT license.
FAQs
Uglify JS files with glob pattern.
We found that glob-uglifyjs demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
Research
/Security News
Undocumented protestware found in 28 npm packages disrupts UI for Russian-language users visiting Russian and Belarusian domains.
Research
/Security News
North Korean threat actors deploy 67 malicious npm packages using the newly discovered XORIndex malware loader.