Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

Putting password in a zip file using node.js

var fs = require("fs");
var Minizip = require('minizip-asm.js');
/*
https://www.npmjs.com/package/minizip-asm.js
*/

var text = new Buffer("HI!");
var mz = new Minizip();

mz.append("Folder/Readme.txt", text, { password: "secret" });
fs.writeFileSync("Test.zip", new Buffer(mz.zip()));
Comment

PREVIOUS NEXT
Code Example
Javascript :: on focus jquery 
Javascript :: delete multiple keys from object javascript 
Javascript :: unload in jquery 
Javascript :: axios.post request with custom headers 
Javascript :: get children jquery index 
Javascript :: nodejs date difference 
Javascript :: find the largest number in array javascript 
Javascript :: slick slider multiple sliders on one page 
Javascript :: javascript file drag and drop 
Javascript :: js check link if exists 
Javascript :: node js to int 
Javascript :: js url 
Javascript :: javascript orderby 
Javascript :: create module in js 
Javascript :: js onclick change styles 
Javascript :: javascript difference between two dates in days 
Javascript :: on click jquery 
Javascript :: windows terminal vai kill all node js port 
Javascript :: validate password javascript 
Javascript :: javascript get html slider value 
Javascript :: dociql process.env.NODE_TLS_REJECT_UNAUTHORIZED=0 
Javascript :: cube root of a number in js 
Javascript :: how to navigate programatically in class component react router v6 
Javascript :: difference between .touched & .dirty in angular 
Javascript :: how to add css in js 
Javascript :: javascript date 
Javascript :: convert string time to time in javascript 
Javascript :: ionic ngfor in component 
Javascript :: props vue 3 
Javascript :: react native copy to clipboard 
ADD CONTENT
Topic
Content
Source link
Name
1+3 =