Skip to content
This repository was archived by the owner on Mar 7, 2020. It is now read-only.

uwx-node-modules/b13

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

b13

Base13 encoding designed to be intuitive to type by people on a phone keyboard. Based on alanhett/ace.

Usage

var ace = require('./ace');

// encoding a string (note that strings take up more space than integers or floats)
s = ace.encode('Hello world!');
console.log(s); // sosswununuserveusuwunsves

// decoding a string
s = ace.decode(s);
console.log(s); // Hello world!

// encoding an integer (note that integers and floats take up less space than strings)
i = ace.encode(123456789);
console.log(i); // xczsrsnsc

// decoding an integer
i = ace.decode(i);
console.log(i); // 123456789

// encoding a float
f = ace.encode(1234.5678);
console.log(f); // oznesmmnns

// decoding a float
f = ace.decode(f);
console.log(f); // 1234.5678

About

Base 13 encoder / decoder designed to be easy to type on a phone keyboard (WIP)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • JavaScript 100.0%