-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated README and added path.join fix
- Loading branch information
Showing
3 changed files
with
80 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
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 | ||
|
||
```bash | ||
$ npm install organic_hash --save | ||
``` | ||
|
||
## Usage | ||
|
||
Basic usage | ||
|
||
```javascript | ||
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 | ||
|
||
```javascript | ||
var organicHash = require('organic_hash')(4); | ||
organicHash.hash('Zero') | ||
// 'slowly-regular-personally-hibernation' | ||
``` | ||
|
||
Random hashes | ||
|
||
```javascript | ||
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 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,24 @@ | ||
{ | ||
"name": "orgnic_hash", | ||
"version": "1.0.0", | ||
"description": "A javascript version of josephcc organic hash", | ||
"name": "organic_hash", | ||
"title": "organic_hash", | ||
"version": "1.0.1", | ||
"description": "Converts strings to awesome scifi objects!! A port of the Josephcc ruby gem of the same name", | ||
"main": "index.js", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/nhahn/organic_hash" | ||
}, | ||
"homepage": "https://github.com/nhahn/organic_hash", | ||
"keywords": [ | ||
"hash", | ||
"nlp" | ||
"crypto" | ||
], | ||
"author": "Nathan Hahn", | ||
"license": "MIT", | ||
"license": "Apache-2.0", | ||
"dependencies": { | ||
"crypto-js": "^3.1.5", | ||
"crypto-js": "^3.1.5" | ||
} | ||
} |