organic_hash

1.0.1 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i organic_hash

Weekly Downloads

1

Version

1.0.1

License

Apache-2.0

Last publish

Collaborators

  • nhahn