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 1.0.1 to 1.0.2

examples/decompress.js

2

index.js

@@ -1,1 +0,1 @@

module.exports = require('./sc-compression');
module.exports = require('./src/sc-compression');
{
"name": "sc-compression",
"version": "1.0.1",
"version": "1.0.2",
"description": "",

@@ -13,3 +13,3 @@ "main": "index.js",

"fs-extra": "^8.1.0",
"lzma-native": "^5.0.0",
"lzma-native": "^5.0.1",
"md5": "^2.2.1",

@@ -16,0 +16,0 @@ "sync-rpc": "^1.3.6"

@@ -22,9 +22,18 @@ # sc-compression

const { readdirSync, readFileSync, writeFileSync } = require('fs');
const { resolve } = require('path');
const ScCompression = require('sc-compression');
readdirSync('coc-13.0.4/logic/').forEach((file) => {
const buffer = readFileSync(file);
writeFileSync(file, ScCompression.decompress(buffer));
const directory = 'coc-13.0.4/logic';
readdirSync(directory).forEach((file) => {
const filepath = resolve(directory, file);
const buffer = readFileSync(filepath);
writeFileSync(filepath, ScCompression.decompress(buffer));
});
```
See tests for additional examples.
See tests for additional implementation examples.
## Step by step guide for non-developers
- Make sure you have Node.js installed (https://nodejs.org/en/)
- Run ``npm install -g sc-compression`` in a terminal
- Download examples/decompress.js from this repository
- Run ``node decompress.js`` in a terminal

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