hash-rename-file
v0.0.3
Published
hash and rename file, support (tp, fnt ...)
Downloads
3
Readme
hash-rename-file
hash and rename file, support (tp, fnt) type
How to use
var hrf = require('hash-rename-file');
var opt = {
base: 'res', // destPath retain src dir info
type: 'tp', // file type, support ('tp', 'fnt', 'spine', 'normal'), default: 'normal'
num: 7 // append hash bit num to filename, such as: filename_1234567.png
};
hrf(srcGlob, destPath, opt, function(err) {
if (err) {
console.error(err);
}
});
Installation
npm install --save hash-rename-file
Tests
npm install
npm test