Security News
PyPI’s New Archival Feature Closes a Major Security Gap
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
sc-compression
Advanced tools
This module allows you to compress and decompress Supercell assets. It supports the following signatures:
This module allows you to compress and decompress Supercell assets. It supports the following signatures:
Value | Signature | Comment |
---|---|---|
0 | NONE | Regular non-compressed file |
1 | LZMA | Starts with 5d 00 00 |
2 | SC | Starts with SC |
3 | SCLZ | Starts with SC and contains SCLZ |
4 | SIG | Starts with Sig: |
The module automatically finds the right signature when decompress function is called.
npm install sc-compression
const { readdirSync, readFileSync, writeFileSync } = require('fs');
const ScCompression = require('sc-compression');
readdirSync('coc-13.0.4/logic/').forEach((file) => {
const buffer = readFileSync(file);
writeFileSync(file, ScCompression.decompress(buffer));
});
See tests for additional examples.
FAQs
Compress and decompress Supercell games assets
The npm package sc-compression receives a total of 8 weekly downloads. As such, sc-compression popularity was classified as not popular.
We found that sc-compression 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
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
Research
Security News
Malicious npm package postcss-optimizer delivers BeaverTail malware, targeting developer systems; similarities to past campaigns suggest a North Korean connection.
Security News
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.