Product
Introducing SSO
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
minizip-asm.js
Advanced tools
Readme
Minizip in javascript. Work with password. Demo: https://rf00.github.io/minizip-asm.js/example/
<script src="https://raw.githubusercontent.com/rf00/minizip-asm.js/master/lib/minizip-asm.min.js"></script>
npm install minizip-asm.js
var Minizip = require('minizip-asm.js');
var fs = require("fs");
var text = new Buffer("Abc~~~");
var mz = new Minizip();
mz.append("haha/abc.txt", text, {password: "~~~"});
fs.writeFileSync("abc.zip", new Buffer(mz.zip()));
Constructor for making a new zip file or opening from existing one.
@ArrayBuffer
{Buffer|Uint8Array} <optional> - It can be either Node.js Buffer read from zip file or Uint8Array in web browser.
@ Return an instance of Minizip.
List all files in Minizip with full filepath and have password or not.
@options
<optional>
encoding
{"utf8"|"buffer"} <default="utf8"> - Since the filepath may not encode in utf8. It will be handy to have an ArrayBuffer to do detection on encoding.@ Return an Array
. Something like this:
[{
filepath: "haha/abc.txt",
crypt: true // (type: boolean)
}]
Extract one file.
@filepath
{String|Buffer|Uint8Array} - Full filepath to extract.
@options
<optional>
@encoding
{"utf8"|"buffer"} <default="buffer"> - File can return in text.
@password
{String|Buffer|Uint8Array} <optional>
@ Return a Buffer
.
Append one file.
@filepath
{String|Buffer|Uint8Array} - Full filepath to extract.
@data
{String|Buffer|Uint8Array} - File data.
@options
<optional>
@password
{String|Buffer|Uint8Array} <optional>
@compressLevel
{Number} <default=5> - 0: Store only. 1: Compress faster. 9: Compress better.
@ Return nothing.
Retrive zip file.
Buffer
.FAQs
Minizip in javascript. Work with password. Demo: https://rf00.github.io/minizip-asm.js/example/
The npm package minizip-asm.js receives a total of 3,001 weekly downloads. As such, minizip-asm.js popularity was classified as popular.
We found that minizip-asm.js 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.
Product
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.