cohash
is a simple command line to generate a hash value for files.
pnpm add cohash -g
npm i cohash -g
cohash ./test.js -l 8 -o a.[hash].js
--output
or-o
:- Specify the address of the generated file. It will log the hash value to the terminal if there is no
--output
or-o
.
- Specify the address of the generated file. It will log the hash value to the terminal if there is no
--length
or-l
:- Limit the length of the hash value.
--stream
or-s
:- Default is
true
. Whether to read as a file stream.
- Default is