biofriction-wp-theme/node_modules/decompress-unzip/readme.md

43 lines
630 B
Markdown
Raw Permalink Normal View History

2021-10-26 14:18:09 +02:00
# decompress-unzip [![Build Status](https://travis-ci.org/kevva/decompress-unzip.svg?branch=master)](https://travis-ci.org/kevva/decompress-unzip)
> zip decompress plugin
## Install
```
$ npm install --save decompress-unzip
```
## Usage
```js
const decompress = require('decompress');
const decompressUnzip = require('decompress-unzip');
decompress('unicorn.zip', 'dist', {
plugins: [
decompressUnzip()
]
}).then(() => {
console.log('Files decompressed');
});
```
## API
### decompressUnzip()(buf)
#### buf
Type: `Buffer`
Buffer to decompress.
## License
MIT © [Kevin Mårtensson](https://github.com/kevva)