1.0.2 • Published 7 years ago

rev-file-cli v1.0.2

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

rev-file-cli Build Status

This is a cli utlity for adding revision hashes to file names either by renaming the src file or copying it to a destination folder by using the option -d

Install

$ npm install --save rev-file-cli

Usage

$ revfile --help

	Usage: revfile <path> [<path> ...]

	  Renames a file with rev hash

	Options:

	  -h, --help   Display this usage info
	  -d, --dest   Specify destination directory (if specified, will copy instead of replace)

	Examples
	  $ revfile unicorn.js 
	  unicorn-d41d8cd98f.js

Piping stream output

Information about the files updated or copied will output as string streams. The format of the output will look like this:

[original_filepath_1]
[updated_filepath_1]
...
[original_filepath_n]
[updated_filepath_n]

Related

License

MIT ©