Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 

JavaScript Minifier

Lightweight command line tool that utilises the great work of javascript-minifier.com, to minify js files.

Installation

Add a jsmin script to your PATH, replacing x.y.z with version.

# *nix shell script
java -jar /path/to/jsmin-x.y.z.jar "$@"

# windows batch file
@call java -jar /path/to/jsmin-x.y.z.jar %*

Usage

You can minify single files or entire directories and optionally specifiy an alternative output directory.

$ jsmin src/my_file.js
# Creates my_file.min.js in the src directory

$ jsmin src/my_file.js out
# Creates my_file.min.js in the out directory

$ jsmin src out
# Minifies all files in src and puts results in out

$ jsmin src out -r
# Same as before including subdirectories

See Also

About

Lightweight command line tool that minifies js files.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages