
Security News
TypeScript Native Previews: 10x Faster Compiler Now on npm for Public Testing
TypeScript Native Previews offers a 10x faster Go-based compiler, now available on npm for public testing with early editor and language support.
Easy zip is extend from jszip,and run in the nodejs.
$ npm install easy-zip
var path = require('path'),
fs = require('fs'),
async = require('async'),
easyzip = require('./easyzip');
var zip = new easyzip.EasyZip();
//add text
zip.file('hello.txt','Hello World!');
zip.writeToFile('text.zip');//write zip data to disk
//add folder
var zip2 = new easyzip.EasyZip();
var jsFolder = zip2.folder('js');
jsFolder.file('hello.js','alert("hello world")');
zip2.writeToFile('folder.zip');
//add file
var zip3 = new easyzip.EasyZip();
zip3.addFile('main.js','easyzip.js',function(){
zip3.writeToFile('file.zip');
});
//batch add files
var files = [
{source : 'easyzip.js',target:'easyzip.js'},
{target : 'img'},//if source is null,means make a folder
{source : 'jszip.js',target:'lib/tmp.js'}
];
var zip4 = new easyzip.EasyZip();
zip4.batchAdd(files,function(){
zip4.writeToFile('batchadd.zip');
});
//zip a folder
var zip5 = new easyzip.EasyZip();
zip5.zipFolder('node_modules',function(){
zip5.writeToFile('folder.zip');
});
//write data to http.Response
//zip.writeToResponse(response,'attachment.zip');
//write to file sync
//zip.writeToFileSycn(filePath);
BSD
FAQs
Easy zip is extend from jszip,run in the nodejs.
The npm package easy-zip receives a total of 4,340 weekly downloads. As such, easy-zip popularity was classified as popular.
We found that easy-zip demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
TypeScript Native Previews offers a 10x faster Go-based compiler, now available on npm for public testing with early editor and language support.
Research
Security News
Malicious npm packages targeting React, Vue, Vite, Node.js, and Quill remained undetected for two years while deploying destructive payloads.
Security News
Open source maintainers are urging GitHub to let them block Copilot from submitting AI-generated issues and pull requests to their repositories.