1.0.0 • Published 6 years ago

hash-all v1.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

hash-all

NodeJS module to hash a string in every available hash and do something with it.

Usage

To install the module run: npm i hash-all

To import the module:

const hashAll = require('hash-all')

To run it:

//Log every hash possibility to the console
hashAll.forEachHash('Hello World', (hash, algo) => {
    console.log(`(${algo}) - ${hash}`)
})

//Log every hash you set in a list to the console
app.forEachHashInList('Hello World', ['md5', 'sha1'], (hash, algo) => {
    console.log(`(${algo}) - ${hash}`)
})

//Get every supported hash ('md5, 'sha1', etc..)
hashAll.getHashes()
hashAll.hashes
1.0.0

6 years ago

0.2.0

6 years ago

0.1.4

6 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago

0.0.1

6 years ago