node-unrar-js
Advanced tools
Comparing version 1.0.2 to 1.0.3
{ | ||
"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 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
619931
237