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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 3.0.0
    261
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 3.0.0
    261
  • 2.1.0
    41
  • 2.0.0
    1
  • 1.0.0
    1
  • 0.1.0
    1

Package Sidebar

Install

npm i hash-file

Weekly Downloads

305

Version

3.0.0

License

MIT

Last publish

Collaborators

  • kevva