Skip to content

MrlolDev/shrink-string

 
 

Repository files navigation

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

About

Tiny string compression module for Node.

Resources

License

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 88.3%
  • TypeScript 11.7%