Skip to content

Commit 255a165

Browse files
committed
Merge pull request #1 from annexare/es6
ES6 class, unit tests + code coverage, extraction, Zip instead of 7z
2 parents 5db03e4 + c7d2861 commit 255a165

18 files changed

+366
-228
lines changed

.gitignore

+4
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,7 @@ node_modules
3131

3232
# Optional REPL history
3333
.node_repl_history
34+
35+
# Test DMG or ZIP files
36+
tests/*.dmg
37+
tests/*.zip

.npmignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
tests

7z/7za.dll

-240 KB
Binary file not shown.

7z/7za.exe

-629 KB
Binary file not shown.

7z/7zxa.dll

-138 KB
Binary file not shown.

7z/License.txt

-31
This file was deleted.

7z/readme.txt

-124
This file was deleted.

README.md

+9-5
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@ let dir = 'some/test/dir';
2121
Pack.param('dmg', /osx/);
2222

2323
// Pack the directory
24-
Pack.path(dir);
24+
let zip = Pack.path(dir);
25+
// Extract to directory
26+
Pack.extract(zip, dir);
2527
```
2628

2729
### Parameters
@@ -37,8 +39,10 @@ Created by [Annexare Studio](https://annexare.com/).
3739
Feel free to use it as you need in your apps or send updates into [this](https://github.com/annexare/PackDir) public repository.
3840
All code is under MIT license.
3941

40-
## 7-Zip
42+
## Zip/UnZip for Windows
4143

42-
For Windows host [7-Zip](http://www.7-zip.org/) standalone console app is used
43-
(~1MB, doesn't require installation).
44-
All license files are included with it, with respect to the author (Igor Pavlov).
44+
For Windows host
45+
[Zip](http://gnuwin32.sourceforge.net/packages/zip.htm)/
46+
[UnZip](http://gnuwin32.sourceforge.net/packages/unzip.htm)
47+
standalone console apps are used
48+
(~800kB, doesn't require installation, bundled with the package).

0 commit comments

Comments
 (0)