base64int

1.1.0 • Public • Published

Base64 Int

Pure JS integer to/from base64 converter compatible with IE7+, Opera, Firefox, Chrome and Safari. Outputs a base64 string that can be stored in cookies, useful for compressing numbers.

How to install

npm install base64int

Example

var base64int = require('base64int');
 
base64int.encode(123456);
// returns "eJA"
 
base64int.decode('eJA');
// returns 123456

Readme

Keywords

none

Package Sidebar

Install

npm i base64int

Weekly Downloads

15

Version

1.1.0

License

ISC

Last publish

Collaborators

  • qubit