eaze-codex
v1.0.0
Published
Encode and decode Eaze invite codes
Downloads
14
Readme
codex
Encode and decode Eaze invite codes
Install
# API
$ npm install --save eaze-codex
# CLI
$ npm install --global eaze-codex
Usage
var codex = require('eaze-codex')
codex.encode(73061)
//=> icmmgd
codex.decode('icmmgd')
//=> 73061
$ codex encode 73061
#=> icmmgd
$ codex decode icmmgd
#=> 73061
API
codex.encode(id)
-> string
Returns an invite code.
id
Required
Type: number
The user ID number.
codex.decode(code)
-> number
Returns a user ID.
code
Required
Type: string
License
MIT © Ben Drucker