hash-file
Create a hashed file name
Last updated 10 years ago by kevva .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install hash-file 
SYNC missed versions from official npm registry.

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

Current Tags

  • 3.0.0                                ...           latest (10 years ago)

5 Versions

  • 3.0.0                                ...           10 years ago
  • 2.1.0                                ...           11 years ago
  • 2.0.0                                ...           11 years ago
  • 1.0.0                                ...           11 years ago
  • 0.1.0                                ...           12 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (1)
Dev Dependencies (2)
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |