1.0.0 • Published 9 years ago

eaze-codex v1.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
9 years ago

codex Build Status

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