
Research
TeamPCP Compromises Telnyx Python SDK to Deliver Credential-Stealing Malware
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.
JSSC (JavaScript String Compressor) is an open-source, lossless string compression algorithm designed specifically for JavaScript.
It operates directly on JavaScript strings (UTF-16) and produces compressed data that is also a valid JavaScript string.
⚠️ Compressed strings produced by JSSC v1.x.x are NOT compatible with v2.x.x
Reasons:
JSSC operates on JavaScript UTF-16 code units, not on UTF-8 bytes.
This means:
The project is called JSSC (JavaScript String Compressor).
The npm package is published under the name strc, because the name jssc is already occupied on npm by an unrelated Java-based package.
Both names refer to the same project.
Install via npm
npm i strc
The npm package name is
strc, but the library itself is JSSC.
Or you can use it on your website by inserting the following HTML script tags.
<script src="https://unpkg.com/justc"></script>
<script src="https://unpkg.com/strc"></script>
const { compress, decompress } = require('strc');
const example = await compress("Hello, world!");
await decompress(example);
import { compress, decompress } from 'strc';
const example = await compress("Hello, world!");
await decompress(example);
import JSSC from 'https://jssc.js.org/jssc.min.js';
const example = await JSSC.compress("Hello, world!");
await JSSC.decompress(example);
When using the UMD build via CDN, the library is exposed globally as JSSC.
<script src="https://unpkg.com/justc"></script>
<script src="https://unpkg.com/strc"></script>
const compressed = await JSSC.compress("Hello, world!");
const decompressed = await JSSC.decompress(compressed);
compress(input: string | object | number): Promise<string>Compresses the input and returns a compressed JavaScript string.
decompress(input: string, stringify?: boolean): Promise<string | object | number>Decompresses a previously compressed string/object/integer.
jssc --help
Compress a file/directory to JSSC Archive:
jssc <input>
Decompress a JSSC Archive:
jssc <input.jssc> -d
JSSC depends on:
JSSC CLI and Format Handling depends on:
FAQs
JavaScript String Compressor - lossless string compression algorithm
The npm package strc receives a total of 84 weekly downloads. As such, strc popularity was classified as not popular.
We found that strc demonstrated a healthy version release cadence and project activity because the last version was released less than 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.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.

Security News
TeamPCP is partnering with ransomware group Vect to turn open source supply chain attacks on tools like Trivy and LiteLLM into large-scale ransomware operations.

Security News
/Research
Widespread GitHub phishing campaign uses fake Visual Studio Code security alerts in Discussions to trick developers into visiting malicious website.