organic_hash
v1.0.1
Published
Converts strings to awesome scifi objects!! A port of the Josephcc ruby gem of the same name
Downloads
2
Readme
Organic Hash
Converts strings to awesome scifi objects!!
Organic Hash hashes strings (user ID, hashes) to a human-readable, scifi-themed representation.
Demo
http://truly-civilized-pancakes.herokuapp.com
Install
$ npm install organic_hash --save
Usage
Basic usage
var organicHash = require('organic_hash')();
organicHash.hash('ID_A3AHG7FKPIV07')
// "clearly-mongoloid-pressure"
organicHash.hash('asldkjasldkjasdlkajsd')
// 'technically-common-device'
organicHash.hash('nhahn')
// 'dangerously-successful-gun'
Different length
var organicHash = require('organic_hash')(4);
organicHash.hash('Zero')
// 'slowly-regular-personally-hibernation'
Random hashes
var organicHash = require('organic_hash')();
organicHash.rand();
// 'purposefully-weak-neurotoxin'
Authors
Nathan Hahn [email protected] ported the library to Javascript Joseph Chee Chang [email protected] and Zero Cho [email protected]
License
Apache License, Version 2.0
URL
https://github.com/nhahn/organic_hash