hash-rename-file

0.0.3 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i hash-rename-file

Weekly Downloads

1

Version

0.0.3

License

MIT

Last publish

Collaborators

  • builden