New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

uniqf

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

uniqf

Make a file name unique by appending a cryptographic hash

latest
Source
npmnpm
Version
0.2.1
Version published
Weekly downloads
2
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

file

FAQs

Package last updated on 02 Oct 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts