UNPKG

node-unrar

Version:
44 lines (26 loc) 1.06 kB
# node-unrar [![NPM version][npm-image]][npm-url] [![Dependency Status][daviddm-image]][daviddm-url] > Unrar wrapper for Node-js. # node-unrar Created to unrar archives using `unrar` library. ## Installation `npm install node-unrar` You must install `unrar` from rarlab website and put it in your PATH. ## Example ```js var Unrar = require('node-unrar'); var rar = new Unrar('/path/to/file.rar'); /// Create '/path/to/dest/' before rar.extract() rar.extract('/path/to/dest/', null, function (err) { //file extracted successfully. }); ``` ## TODO Utilize a second argument as an options object for password protected rar's and other available options. ## License Apache-2.0 © [npm-image]: https://badge.fury.io/js/node-unrar.svg [npm-url]: https://npmjs.org/package/node-unrar [travis-image]: https://travis-ci.org/scopsy/node-unrar.svg?branch=master [travis-url]: https://travis-ci.org/scopsy/node-unrar [daviddm-image]: https://david-dm.org/scopsy/node-unrar.svg?theme=shields.io [daviddm-url]: https://david-dm.org/scopsy/node-unrar