A standalone unrar
library without any need for external dependencies.
This library has the Unarchiver unar
and lsar
tools bundled. You can
download the tools separately or see the source code here, if needed: http://unarchiver.c3.cx/commandline
Install
npm install --save standalone-unrar
API
Members
- unpack ⇒
ChildProcess
Function for unpacking an archived file.
- list ⇒
ChildProcess
Function for unpacking an archived file.
Functions
- unrar(archive) ⇒
Object
Completely standalone unrar library for node. Is bundled with unrar and rar list tools, so there is no need for external dependencies.
Currently only works on Mac OS X.
This is a convenience function for list and unpack to avoid repeting the archive path. This means
unrar(path).unpack(func)
is the same asunrar.unpack(path, func)
ChildProcess
unpack ⇒ Function for unpacking an archived file.
Kind: global variable
Returns: ChildProcess
- Result from execution
Param | Type | Description |
---|---|---|
archive | String |
path to archive to operate on |
arguments | Object |
Arguments passed to unar tool. |
options | Object |
Options passed to execution of the unar tool. |
callback | function |
Callback when data is unpacked |
Example
unrar;unrar;
ChildProcess
list ⇒ Function for unpacking an archived file.
Kind: global variable
Returns: ChildProcess
- Result from execution
Param | Type | Description |
---|---|---|
archive | String |
path to archive to operate on |
arguments | Object |
Arguments passed to unar tool. |
options | Object |
Options passed to execution of the unar tool. |
callback | function |
Callback when data is unpacked |
Example
unrar;unrar;
Object
unrar(archive) ⇒ Completely standalone unrar library for node. Is bundled with unrar and rar list tools, so there is no need for external dependencies.
Currently only works on Mac OS X.
This is a convenience function for list and unpack to avoid
repeting the archive path.
This means unrar(path).unpack(func)
is the same as
unrar.unpack(path, func)
Kind: global function
Returns: Object
- functions unrar
and list
that operate on archive
See
- unpack
- list
Param | Type | Description |
---|---|---|
archive | String |
path to archive to operate on |
Example
;;;