
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
A tiny, text-based LZW implementation for JS with built-in optimizations. Useful for IndexDB storage with minimal overhead.
A tiny, text-based LZW implementation for JS with built-in optimizations. Useful for IndexDB storage with minimal overhead.
npm i lzw-lite
import {compress, decompress} from "lzw-lite";
/** Convert string -> Uint8Array to store in IndexDB */
const mystringToCompress = "insert string here";
const compressed: Uint8Array = compress(mystringToCompress);
/** Convert Uint8Array -> string to get original value back */
const myOriginalString = decompress(compressed);
For optimal bundle size, lzw-lite is compiled with target ESNext. The package.json exposes both a type module (preffered) and type UMD export. If your target does not support the given ESM features, you will have to recompile/polyfill with your own bundler.
2 ** 31 which will cause an overflow in bit-shift operations.Eventually, the CompressionStream and DecompressionStream API from Google will hopefully land in most browsers which will provide a native GZIP library in the browser.
For now, the API's are only avaliable on latest Chrome versions and there are no plans from other browsers (so far) to support them.
https://github.com/pieroxy/lz-string/blob/master/libs/lz-string.min.js (4.61 KB min)
FAQs
A tiny, text-based LZW implementation for JS with built-in optimizations. Useful for IndexDB storage with minimal overhead.
The npm package lzw-lite receives a total of 32 weekly downloads. As such, lzw-lite popularity was classified as not popular.
We found that lzw-lite demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.