node-zip
node-zip - Zip/Unzip files ported from JSZip

node-zip downloads node-zip version

node-zip유사 패키지:
npm 다운로드 트렌드
3 년
🌟 node-zip의 README.md에 실시간 사용 차트를 표시하려면 아래 코드를 복사하세요.
## Usage Trend
[![Usage Trend of node-zip](https://npm-compare.com/img/npm-trend/THREE_YEARS/node-zip.png)](https://npm-compare.com/node-zip#timeRange=THREE_YEARS)
Cumulative GitHub Star Trend
🌟 node-zip의 README.md에 GitHub Stars 트렌드 차트를 표시하려면 아래 코드를 복사하세요.
## GitHub Stars Trend
[![GitHub Stars Trend of node-zip](https://npm-compare.com/img/github-trend/node-zip.png)](https://npm-compare.com/node-zip)
통계 세부사항
패키지
다운로드
Stars
크기
Issues
발행일
라이선스
node-zip87,486216-2010年前-
node-zip의 README

node-zip

node-zip - Zip/Unzip files ported from JSZip

Installation

npm install node-zip

Usage

Zip:

var zip = new require('node-zip')();
zip.file('test.file', 'hello there');
var data = zip.generate({base64:false,compression:'DEFLATE'});
console.log(data); // ugly data

Unzip:

var zip = new require('node-zip')(data, {base64: false, checkCRC32: true});
console.log(zip.files['test.file']); // hello there

You can also load directly:

require('node-zip');
var zip = new JSZip(data, options)
...

Write to a file (IMPORTANT: use binary encode, thanks to @Acek)

var fs = require("fs");
zip.file('test.txt', 'hello there');
var data = zip.generate({base64:false,compression:'DEFLATE'});
fs.writeFileSync('test.zip', data, 'binary');

Testing

npm install -g jasmine-node
jasmine-node test

Manual

node-zip uses JSZip, please refer to their website for further information: http://stuartk.com/jszip/

Contributors

David Duponchel @dduponchel

Feel free to send your pull requests and contribute to this project

License

MIT