npm.io
3.0.0 • Published 10 years ago

hash-file

Licence
MIT
Version
3.0.0
Deps
1
Vulns
0
Weekly
0
Stars
11

hash-file Build Status

Create a hashed file name

Install

$ npm install --save hash-file

Usage

const hashFile = require('hash-file');

hashFile('test.jpg').then(hash => {
	console.log(hash);
	//=> 'ac8b2c4b75b2d36988c62b919a857f1baacfcd4c'
});

hashFile.sync('test.jpg');
//=> 'ac8b2c4b75b2d36988c62b919a857f1baacfcd4c'

License

MIT Kevin Mårtensson

Keywords