New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

sc-compression

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sc-compression - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

2

package.json
{
"name": "sc-compression",
"version": "2.0.0",
"version": "2.0.1",
"description": "Compress and decompress Supercell games assets",

@@ -5,0 +5,0 @@ "type": "module",

# Sc Compression
This module is intended to compress and decompress Supercell assets.
It supports the following signatures:
- `'none'`: non-compressed file
- `'lzma'`: starts with bytes 0x5d0000
- `'sc'`: starts with "SC"
- `'sc2'`: starts with "SC" and contains "START"
- `'sclz'`: starts with "SC" and contains "SCLZ"
- `'sig'`: starts with "Sig:"
| signature | description |
| --- | --- |
| `'none'` | non-compressed file |
| `'lzma'` | starts with bytes 0x5d0000 |
| `'sc'` | starts with "SC" |
| `'sc2'` | starts with "SC" and contains "START" |
| `'sclz'` | starts with "SC" and contains "SCLZ" |
| `'sig'` | starts with "Sig:" |
The module automatically infers the right signature when `decompress` is called.

@@ -18,3 +21,3 @@ ## Install

- `buffer` <Buffer\> A compressed file that was read into a Node.js Buffer
- Returns: <Buffer\> A decompressed file buffer that can be written to disk
- Returns: <Promise<Buffer\>\> A decompressed file buffer that can be written to disk

@@ -25,3 +28,3 @@ ### `compress(buffer, signature)`

- `signature` <string\> `'lzma'`, `'sc'`, `'sclz'` or `'sig'`. It is impossible to recompress an `sig` file with a valid hash, so attempting to load an `sig` file in an unpatched game client will crash.
- Returns: <Buffer\> A compressed file buffer that can be written to disk
- Returns: <Promise<Buffer\>\> A compressed file buffer that can be written to disk

@@ -28,0 +31,0 @@ ### `readSignature(buffer)`

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc