unrar
Unrars rar archives with unrar
utility
Installation
npm install unrar
You must have unrar
tool in the path.
For windows download from http://www.rarlab.com/rar_add.htm
Example
var Unrar = ; var archive = 'archive.rar';// or// var archive = new Unrar({// path: protectedArchivePath,// arguments: ['-pPassword'],// bin: pathToUnrarBin // Default: unrar// }); archive;
Usage
var Unrar = ;
API
Constructor
var archive = '/path/to/some/file.rar';
options
String|Object File path or options objectpath
String File patharguments
Array Additional arguments forunrar
command
archive.list(callback)
callback
Functionerror
Errorentries
Array Descriptions of archive entries
archive.stream(entryName)
entryName
String Name of entry for extracting
Returns readable stream