uniqf

0.2.1 • Public • Published

uniqf

Make a file name unique by appending a cryptographic hash.

build status dependency status dev dependency status

Example

var uniqf = require('uniqf');
 
uniqf('test/files/hasselblad.jpg', function (err, name) {
  console.log(name);
});

Mehods

var uniqf = require('uniqf');

uniqf(file, cb (err, name) {})

Generate a new unique file name based on the given file.

uniqf(src, dest, cb (err, name) {})

Generate a new unique file name based on the hash of the given src and the filename of the given dest.

License

MIT

/uniqf/

    Package Sidebar

    Install

    npm i uniqf

    Weekly Downloads

    0

    Version

    0.2.1

    License

    MIT

    Last publish

    Collaborators

    • uggedal