Skip to content

Upgrade the rev-path , add the option to control the filename name style

Notifications You must be signed in to change notification settings

ursulashan/rev-path-musikid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

rev-path-musikid

Upgrade the rev-path , add the option to control the filename name style — Edit

Install

$ npm install --save rev-path-musikid

Usage

var revPath = require('rev-path-musikid');
var hash = 'bb9d8fe615';
var namesplit='_';//connection chatacter between filename and hash

var path = revPath('src/unicorn.png', hash, namesplit);
//=> 'src/unicorn-bb9d8fe615.png'

revPath('src/unicorn.png', Date.now());
//=> 'src/unicorn-1432309925925.png'

// you can also revert an already hashed path
revPath.revert(path, hash, namesplit);
//=> 'src/unicorn.png'

License

MIT © Sindre Sorhus

rev-path-musikid

About

Upgrade the rev-path , add the option to control the filename name style

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published