shrink-string-typescript
TypeScript icon, indicating that this package has built-in type declarations

3.0.12 • Public • Published

shrink-string

Tiny string compression module for Node.

Support with PayPal Patreon ko-fi


Installation

npm i shrink-string

Usage

const { compress, decompress } = require('shrink-string')

// `compress` takes a unicode string and returns a base64 string
// `decompress` takes that base64 string and returns the original unicode string

const thing = async (s = '') => {
  const shrunk = await compress(s)
  const expanded = await decompress(shrunk)
  assert(s === expanded)
}

LICENSE

Package Sidebar

Install

npm i shrink-string-typescript

Weekly Downloads

7

Version

3.0.12

License

MIT

Unpacked Size

11.6 kB

Total Files

16

Last publish

Collaborators

  • mrlol