0.0.1 • Published 5 years ago
@retoken/shash v0.0.1
@retoken/shash
Install
$ npm i @retoken/shash
Tests
$ npm test
Example
const shash = require('@retoken/shash')
const options = {
key: 3301,
salt: 33
}
const TEXT = 'Aliase Network'
shash(TEXT, options)
.then(r => console.log('With options:', r))
shash(TEXT)
.then(r => console.log('Without options:', r))
const object = {
firstname: 'Danil',
lastname: 'Shaymurzin'
}
shash(object)
.then(r => console.log('Object:', r))
shash(TEXT, OPTIONS)
shash
[Function](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function)- returns: [Promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise)<[String](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)>
0.0.1
5 years ago