0.0.1 • Published 5 years ago

@retoken/shash v0.0.1

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

@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)