@z9i/compress-number-string
TypeScript icon, indicating that this package has built-in type declarations

0.0.2 • Public • Published

compress-number-string

Compress a string contains only number character.

Usage

const {
  compress,
  uncompress
} = require('@z9i/compress-number-string');

const text = '3213434321412431531565757877963160';
const compressed = compress(text);
const uncompressed = uncompress(compressed);

console.log(text, compressed, uncompressed, text === uncompressed);

Tip

  • comporess: no leading zero, length should greater then 15.
  • uncompress: should contain _.

History

v0.0.2

  • Ignore leading or trailing _ for uncompress.
  • Ensure compress value is a string.

v0.0.1

Base support for compress and uncompress number string.

License

MIT.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.2
    3
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.2
    3
  • 0.0.1
    0

Package Sidebar

Install

npm i @z9i/compress-number-string

Weekly Downloads

3

Version

0.0.2

License

MIT

Unpacked Size

7.37 kB

Total Files

7

Last publish

Collaborators

  • xovel