Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

node-unrar-js

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-unrar-js - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

14

package.json
{
"name": "node-unrar-js",
"version": "1.0.2",
"version": "1.0.3",
"description": "Pure JavaScript RAR archive extractor by compile the official unrar lib by Emscripten.",

@@ -24,5 +24,3 @@ "homepage": "https://github.com/YuJianrong/node-unrar.js",

},
"keywords": [
"unrar"
],
"keywords": ["unrar"],
"author": "Jianrong Yu <yujianrong@gmail.com>",

@@ -52,9 +50,5 @@ "license": "MIT",

"lint-staged": {
"*.{json,md,less,yaml,yml}": [
"prettier --write"
],
"*.{ts,tsx}": [
"eslint --fix --max-warnings 0"
]
"*.{json,md,less,yaml,yml}": ["prettier --write"],
"*.{ts,tsx}": ["eslint --fix --max-warnings 0"]
}
}

@@ -158,8 +158,8 @@ # node-unrar-js

```js
const fs = require("fs");
const unrar = require("node-unrar-js");
const fs = require('fs');
const unrar = require('node-unrar-js');
async function main() {
// Read the archive file into a typedArray
const buf = Uint8Array.from(fs.readFileSync("a.rar")).buffer;
const buf = Uint8Array.from(fs.readFileSync('a.rar')).buffer;
const extractor = await unrar.createExtractorFromData({ data: buf });

@@ -171,3 +171,3 @@

const extracted = extractor.extract({ files: ["1.txt"] });
const extracted = extractor.extract({ files: ['1.txt'] });
// extracted.arcHeader : archive header

@@ -217,2 +217,6 @@ const files = [...extracted.files]; //load the files

#### 1.0.3 (2021-05-10)
- Fix for Security Vulnerability on dependencies
#### 1.0.2 (2021-04-01)

@@ -219,0 +223,0 @@

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