Software zum Installieren eines Smart-Mirror Frameworks , zum Nutzen von hochschulrelevanten Informationen, auf einem Raspberry-Pi.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

readme.md 1.5KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. # extract-zip
  2. Unzip written in pure JavaScript. Extracts a zip into a directory. Available as a library or a command line program.
  3. Uses the [`yauzl`](http://npmjs.org/yauzl) ZIP parser.
  4. [![NPM](https://nodei.co/npm/extract-zip.png?global=true)](https://nodei.co/npm/extract-zip/)
  5. [![js-standard-style](https://cdn.rawgit.com/feross/standard/master/badge.svg)](https://github.com/feross/standard)
  6. [![Build Status](https://travis-ci.org/maxogden/extract-zip.svg?branch=master)](https://travis-ci.org/maxogden/extract-zip)
  7. ## Installation
  8. Get the library:
  9. ```
  10. npm install extract-zip --save
  11. ```
  12. Install the command line program:
  13. ```
  14. npm install extract-zip -g
  15. ```
  16. ## JS API
  17. ```js
  18. var extract = require('extract-zip')
  19. extract(source, {dir: target}, function (err) {
  20. // extraction is complete. make sure to handle the err
  21. })
  22. ```
  23. ### Options
  24. - `dir` - defaults to `process.cwd()`
  25. - `defaultDirMode` - integer - Directory Mode (permissions) will default to `493` (octal `0755` in integer)
  26. - `defaultFileMode` - integer - File Mode (permissions) will default to `420` (octal `0644` in integer)
  27. - `onEntry` - function - if present, will be called with `(entry, zipfile)`, entry is every entry from the zip file forwarded from the `entry` event from yauzl. `zipfile` is the `yauzl` instance
  28. Default modes are only used if no permissions are set in the zip file.
  29. ## CLI Usage
  30. ```
  31. extract-zip foo.zip <targetDirectory>
  32. ```
  33. If not specified, `targetDirectory` will default to `process.cwd()`.