files-hash:散列文件

时间:2021-05-14 07:42:25
【文件属性】:
文件名称:files-hash:散列文件
文件大小:7KB
文件格式:ZIP
更新时间:2021-05-14 07:42:25
JavaScript 文件哈希 散列文件。 对于缓存和其他东西很有用。 安装 使用npm安装软件包。 npm install files-hash 用法 var hash = require ( 'files-hash' ) ; hash ( '**/*.txt' , { cwd : 'test/example' } ) . then ( function ( hashes ) { console . log ( hashes ) ; } ) ; /** * Produces: * { 'hello1.txt': '75fdf620d8a1c7e6ea7f4c24ba5ff991fbb82e86', 'hello2.txt': '38ffd0b05376325c933e89ff8f0c2ccf1de05a01' } **/ 原料药 hash(glob,[option
【文件预览】:
files-hash-master
----.gitignore(126B)
----.babelrc(19B)
----package.json(830B)
----.travis.yml(124B)
----LICENSE(1KB)
----index.js(1KB)
----README.md(1KB)
----test()
--------support()
--------examples()
--------mocha.opts(70B)
--------hash.spec.js(1KB)

网友评论