Generate tripcodes in JavaScript.
JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin
lib
test
.eslintrc.js
.gitattributes
.gitignore
.travis.yml
LICENSE.txt
README.md
index.js
package.json

README.md

tripcode

Build Status Dependency Status

JavaScript implementation of 4chan's tripcode algorithm.

Example

var tripcode = require('tripcode');

tripcode('f}EAmbA%');
// => '/izs/14Iuw'

There's even a tripcode command if you install globally!

$ tripcode github is cool
#github => !lLf/rxkwgg
#is => !4CEimo5sKs
#cool => !QkO1sgFXdY

You can also pipe in a newline-delimited file:

$ cat > codes.txt
github
is
cool

$ tripcode < codes.txt
#github => !lLf/rxkwgg
#is => !4CEimo5sKs
#cool => !QkO1sgFXdY

Or pipe out the tripcodes to grep or something to find specific tripcodes!

$ tripcode < /usr/share/dict/words | grep -E '(/AhWyw3toI)'
#incognito => !/AhWyw3toI

Installation

$ npm install tripcode

Unless you want the tripcode command, in which case you gotta install globally:

$ npm install -g tripcode

API

var tripcode = require('tripcode');

tripcode(password)

Returns the tripcode generated from String password.