eaze-codex

1.0.0 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i eaze-codex

Weekly Downloads

1

Version

1.0.0

License

MIT

Last publish

Collaborators

  • bendrucker