i64base

0.1.6 • Public • Published

i64Base NPM version Build Status License

URL, Filename, AWS safe Base64 Integer Strings (BAS). Supports both fast conversions for regular integers and large integer strings (via alan/clarke/int-encoder). Assists with compression as fewer base 64 digits are needed to represent larger integers than base 10 digits. Unlike RFC-3548 Base 64 encodings, readability of BIS is improved for small integers by using an alphabet that extends base-converter in PHP and following node base-converter. This is a subset of the i64 project and has no dependencies.

Install

npm install i64

Usage

var i64 = require('i64Base');   // initial instance
i64.int([integer])              // get/set value as Integer
i64.valueOf([int64_string])     // value as BIS, set option
i64.new(config)                 // new instance factory

Examples

i64.int(64).valueOf()     // _         integer to BIS
i64.valueOf('c').asInt()  // 12        BIS to integer 

To Do

Refactor i64 to extend this project.

License: MIT

Readme

Keywords

none

Package Sidebar

Install

npm i i64base

Weekly Downloads

1

Version

0.1.6

License

MIT

Last publish

Collaborators

  • angleman