Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

glob-uglifyjs

Package Overview
Dependencies
Maintainers
2
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

glob-uglifyjs

Uglify JS files with glob pattern.

  • 2.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
20
increased by53.85%
Maintainers
2
Weekly downloads
 
Created
Source

glob-uglifyjs

Uglify JS files with glob pattern.

Installation

$ npm install glob-uglifyjs

Features

  • Uglify js files with node-glob pattern.
  • Remove source files after uglify.

Command line

Usage

$ glob-uglifyjs -h

Arguments

ArgumentTypeDefaultDescription
-h, --helpbooleanfalseShow help.
-p, --pattern [*]stringFiles glob pattern.
-v, --versionbooleanfalseShow version number.
-c, --configstringglob-uglifyjs.config.jsonPath to JSON config file.

[*] - argument required.

Config

Example

{
    "pattern": "/**/*",
    "options": {
        "UseMinExt": false,
        "MinifyOptions": {},
        "OutDir": "dist-min",
        "RootDir": "dist",
        "RemoveSource": false,
        "Debug": false
    }
}

Properties

PropertyTypeDescription
pattern[*]stringFiles glob pattern.
optionsOptionsglob-uglifyjs options.

[*] - property required.

Options

OptionTypeDefaultDescription
UseMinExtbooleantrueUse min extensions in output files.
MinifyOptionsObject{}UglifyJS minify options. Read more.
OutDirstring Redirect output structure to the directory.
RootDirstring Specifies the root directory of input files.
RemoveSourcebooleanfalseRemove all source files specified by glob pattern.
DebugbooleanfalseShow errors details information.
SilencebooleanfalseSilence all messages in console.
Excludestring | string[]undefinedAdd a pattern or an array of glob patterns to exclude matches. Read more in node-glob options ignore.
Cwdstringprocess.cwd()Current working directory.

License

Released under the MIT license.

Keywords

FAQs

Package last updated on 02 Nov 2017

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc