1.0.1 • Published 8 years ago

organic_hash v1.0.1

Weekly downloads
3
License
Apache-2.0
Repository
github
Last release
8 years ago

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 nhahn@cs.cmu.edu ported the library to Javascript Joseph Chee Chang josephcc.cmu@gmail.com and Zero Cho itszero@gmail.com

License

Apache License, Version 2.0

URL

https://github.com/nhahn/organic_hash