An open API service indexing awesome lists of open source software.

https://github.com/qubitproducts/base64int

Pure JS integer to/from base64 converter
https://github.com/qubitproducts/base64int

ceh implement

Last synced: 10 months ago
JSON representation

Pure JS integer to/from base64 converter

Awesome Lists containing this project

README

          

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
```bash
npm install base64int
```

_Example_
```javascript
var base64int = require('base64int');

base64int.encode(123456);
// returns "eJA"

base64int.decode('eJA');
// returns 123456
```