Skip to content

Simple library to generate an hash relative to current day

Notifications You must be signed in to change notification settings

fabioricali/HashNow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hashNow

Simple library to generate an hash relative to current day.

Build Status Coverage Status

Installation

npm install hash-now --save

Example

Basic

var hashNow = require('hash-now');

hashNow('yourSecreteWord');
// => return an hash of day like '984d047e111265672edaf38feb9d8be4'

Arguments

hashNow(secret[, precision = 'day', utc = true])

Name Type Default Description
secret string required, your secret key
precision string day optional, hash precision can be "day", "hour", "minute", "month", "year"
utc boolean true optional, utc date

License

HashNow is open-sourced software licensed under the MIT license

Author

Fabio Ricali

About

Simple library to generate an hash relative to current day

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published