@minjs1cn/file-hash
v2.0.2
Published
rename by contentHash
Downloads
1
Readme
@minjs1cn/file-hash
文件hash工具
Usage
获取文件hash
const { getHash } = require('@minjs1cn/file-hash')
const hash = getHash('123')
重命名文件夹所有文件
const { reDir } = require('@minjs1cn/file-hash')
reDir('dist')
恢复文件夹所有文件
const { revokeDir } = require('@minjs1cn/file-hash')
revokeDir('dist')
重命名文件
const { reFile } = require('@minjs1cn/file-hash')
reFile('dist/a.png')
恢复文件
const { revokeFile } = require('@minjs1cn/file-hash')
revokeFile('dist/a.hdwdkwfw.png')