hash-file

Create a hashed file name

MIT 5 个版本
安装
npm install hash-file
yarn add hash-file
pnpm add hash-file
bun add hash-file
README

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

版本列表
3.0.0 2016-04-11
2.1.0 2015-05-23
2.0.0 2015-05-04
1.0.0 2015-02-21
0.1.0 2014-01-17