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
- Host: GitHub
- URL: https://github.com/qubitproducts/base64int
- Owner: QubitProducts
- Created: 2014-10-27T17:52:21.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2015-08-28T14:30:45.000Z (over 10 years ago)
- Last Synced: 2025-03-01T03:51:06.799Z (11 months ago)
- Topics: ceh, implement
- Language: JavaScript
- Size: 184 KB
- Stars: 2
- Watchers: 21
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```