Skip to content

Commit

Permalink
update, error corrections
Browse files Browse the repository at this point in the history
  • Loading branch information
TheTechsTech committed Feb 6, 2018
1 parent c590fc0 commit 9d48d35
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
node-7z-forall
node-7z
=======

[![Dependencies Status][david-image]][david-url] [![Build Status][travis-image]][travis-url] [![Code coverage][coveralls-image]][coveralls-url] [![Release][npm-image]][npm-url]
Expand Down Expand Up @@ -34,16 +34,16 @@ myTask.extractFull('myArchive.7z', 'destination', { p: 'myPassword' })
Installation
------------

This package differs from fork in that binaries are downloaded at install time. Host system no longer need to have 7zip installed or in PATH.
This package differs from fork https://github.com/quentinrossetti/node-7z in that binaries are downloaded at install time. Host system no longer need to have 7zip installed or in PATH.

They binaries will be downloaded from:
The binaries will be downloaded from:
> On Linux - https://sourceforge.net/projects/p7zip
> On Windows - http://www.7-zip.org/download.html
> On Mac OSX - http://rudix.org/packages/p7zip.html
Note: Mac OSX 10.6 to 10.12 are pre included, to reinstall `npm run-script prepack` this must be done on a windows platform.

```
npm install --save node-7z-forall
npm install --save node-7z
```

API
Expand Down
7 changes: 4 additions & 3 deletions lib/list.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ module.exports = function (archive, options) {
}
catch(err) {
return reject(err);
};
}
}

data.split('\n').forEach(function (line) {
Expand Down Expand Up @@ -90,7 +90,7 @@ module.exports = function (archive, options) {
attr: res[2],
size: parseInt(res[3], 10),
name: res[5].replace(path.sep, '/')
};
}

entries.push(e);
}
Expand All @@ -114,7 +114,8 @@ module.exports = function (archive, options) {
});

});
};
})
}

function isRequiredProperty(requiredPropertyArr, name) {
return !requiredPropertyArr || (requiredPropertyArr.indexOf(name) >= 0);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "node-7z",
"version": "0.4.3",
"description": "A Node.js wrapper for 7-Zip",
"description": "A Node.js wrapper for 7-Zip with platform binaries",
"main": "lib/index.js",
"scripts": {
"test": "mocha",
Expand Down

0 comments on commit 9d48d35

Please sign in to comment.