Skip to content

Outputs the hash of the given file by the given algorithm

Notifications You must be signed in to change notification settings

anmatika/gethash-of-file

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

USAGE & INFO

Outputs the hash of the given file by the given algorithm.

Possible algorithms supported:

  • sha1
  • sha256
  • md5

Prequisites

npm i

Output all the algorithms

node index.js path/to/file

Output with command line options

Examples

Get sha1:

node index.js path/to/file --sha1

Get sha256:

node index.js path/to/file --sha256

Get md5:

node index.js path/to/file --md5

Get md5 and sha1:

node index.js path/to/file --md5 --sha1

Run tests

npm test

About

Outputs the hash of the given file by the given algorithm

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published