Comments (4)
Confirmed on Windows 10, Ubuntu 22.04. Since Node.js v18.1.0 I get the following error.
TypeError: Failed to parse URL from ...node-unrar-js/dist/js/unrar.wasm
@honeo I cannot reproduce in on node v18.3.0, can you create a sample project and shared on github?
from node-unrar.js.
I have created a repository to reproduce the problem, please check it.
honeo/example-node-unrar-js
Also, the fact that the unrar.js code is displayed in the console when an error occurs was inconvenient because other logs were flowing during the verification.
Can this feature be made optional?
from node-unrar.js.
@honeo I've pushed a new version v2.0.0 to enable the support of node v18, please install the v2.0.0 and try again.
BTW, this code didn't work actually:
for(let {fileHeader, extraction} of files){
fileHeader.flags.directory ?
await fsp.mkdir(fileHeader.name):
await fsp.writeFile(fileHeader.name, extraction);
}
Because in RAR archive, the files are placed at begging and folders are on the end. You may change it to console.log(JSON.stringify(fileHeader), extraction);
to see how it works.
from node-unrar.js.
Thanks for the fix, now we can update Node.js!
I'm also very happy that the fileHeader now includes the Directory, as it did in ver0, so I don't have to use getFileList in advance.
That code is just a SAMPLE and as I mentioned in the comments, it doesn't work.
Never mind.😉
from node-unrar.js.
Related Issues (20)
- Case sensitivity setting when extracting specific file HOT 2
- createExtractorFromFile undefined with Electron (Webpack) HOT 4
- Error: File read error with any rar file. HOT 5
- Z_DATA_ERROR HOT 2
- gbk Chinese filename Garbled err... in Nodejs16 HOT 2
- const extracted = extractor.extract() 加一个选项吧 手动指定unrar的output目录... HOT 1
- Unable to decompress large file HOT 12
- How to use wasm file ? HOT 4
- Feature request: extract single archive entry to a specific file path HOT 1
- createExtractorFromFile extract file larger than 2GB HOT 7
- Stream-based Extractor HOT 1
- monitor progress HOT 1
- synchronisation HOT 1
- a 模块未找到 HOT 5
- Installing on windows fails HOT 9
- Random force program exit (status code 7) HOT 3
- Wrong getFileList() from this file HOT 1
- 用新版本解压不出文件,但是也没有报错 HOT 1
- error:extractor.extract is not a function HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-unrar.js.