1.1.7 • Published 3 years ago

num-encode v1.1.7

Weekly downloads
2
License
MIT
Repository
github
Last release
3 years ago

num-encode

num-encode is a zero dependency 1kb module that converts javascript base 10 numbers to utf-8 strings with any base up to the safe limit of 65535.

Getting Started

CDN

<script src="https://cdn.jsdelivr.net/npm/num-encode@1.0.0/dist/num-encode.min.js"></script>

NPM

npm i -S num-encode

Usage

const { encode, decode } = require('num-encode');
// or
import { encode, decode } from 'num-encode' // if you're using es6
// or
const { encode, decode } = window.numEncode; // if you're using a cdn

const encoded = encode(3123123123321, 256);
console.log(encoded);               // ╗×(¤ôy
console.log(decode(encoded, 256));  // 3123123123321
1.1.7

3 years ago

1.1.6

3 years ago

1.1.5

4 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago