Package Exports
- shrink-string
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (shrink-string) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
shrink-string
Tiny string compression module
Installation
npm i shrink-string
Usage
const { encode, decode } = require('shrink-string')
const thing = async (s = '') => {
const shrunk = await encode(s)
const expanded = await decode(shrunk)
assert(s === expanded)
}