Have ideas to improve npm?Join in the discussion! »

    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

    Install

    npm i hash-rename-file

    DownloadsWeekly Downloads

    1

    Version

    0.0.3

    License

    MIT

    Last publish

    Collaborators

    • avatar