hash-file
DefinitelyTyped icon, indicating that this package has TypeScript declarations provided by the separate @types/hash-file package

3.0.0 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i hash-file

Weekly Downloads

220

Version

3.0.0

License

MIT

Last publish

Collaborators

  • kevva