All Projects → szastupov → zipread

szastupov / zipread

Licence: other
Fast and memory efficient ZIP reader for Node.js

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to zipread

unzip
Tiny unzip helper class for .NET 3.5 Client Profile and Mono 2.10, written in pure C#.
Stars: ✭ 25 (+108.33%)
Mutual labels:  zip
lrkFM
Awesome, (ad) free, open source file manager for Android
Stars: ✭ 44 (+266.67%)
Mutual labels:  zip
ToGoZip
Android share/sendTo menu implementation "add2Zip"
Stars: ✭ 44 (+266.67%)
Mutual labels:  zip
AnonCracker
A single tool to bruteforce pdf , zip and hashes very super fast tool developed with python3
Stars: ✭ 36 (+200%)
Mutual labels:  zip
box
Box - Open Standard Archive Format, a zip killer.
Stars: ✭ 38 (+216.67%)
Mutual labels:  zip
laravel-backup-shield
🔒Password protection (and encryption) for your laravel backups.
Stars: ✭ 32 (+166.67%)
Mutual labels:  zip
terraform-external-module-artifact
Terraform module to fetch any kind of artifacts using curl (binary and text okay)
Stars: ✭ 13 (+8.33%)
Mutual labels:  zip
zip
PHP ZipArchive toolbox
Stars: ✭ 30 (+150%)
Mutual labels:  zip
zipadee
A web app for viewing/editing the contents of a ZIP file
Stars: ✭ 15 (+25%)
Mutual labels:  zip
rc-zip
Pure rust zip & zip64 reading and writing
Stars: ✭ 93 (+675%)
Mutual labels:  zip
Perfect-Zip
Perfect Zip compression utility.
Stars: ✭ 20 (+66.67%)
Mutual labels:  zip
minizip-asm.js
Minizip in javascript. Work with password. Demo:
Stars: ✭ 38 (+216.67%)
Mutual labels:  zip
zip-bucket
zips files in a Google Cloud Storage [tm] bucket
Stars: ✭ 32 (+166.67%)
Mutual labels:  zip
HiFramework.Unity
Based on component to manage project's core logic and module used in unity3d
Stars: ✭ 22 (+83.33%)
Mutual labels:  zip
aspZip
A classic ASP zip and unzip utility class that uses the native zip support from Windows (XP and above) - no components needed
Stars: ✭ 24 (+100%)
Mutual labels:  zip
zipstream
A command line tool that allows you to easily share files and directories over the network
Stars: ✭ 49 (+308.33%)
Mutual labels:  zip
bled
Base Library for Easy Decompression
Stars: ✭ 21 (+75%)
Mutual labels:  zip
ZipWriter
Library for creating ZIP archive for Lua
Stars: ✭ 15 (+25%)
Mutual labels:  zip
python-zipstream
Like Python's ZipFile module, except it works as a generator that provides the file in many small chunks.
Stars: ✭ 117 (+875%)
Mutual labels:  zip
ratarmount
Random Access Read-Only Tar Mount
Stars: ✭ 217 (+1708.33%)
Mutual labels:  zip

zipread

NPM version Build status Build status

zipread is a ZIP file reader designed for speed and memory efficiency. Unlike other modules, it doesn't read the whole file into memory and uses native ZLIB functions for decompression.

var zipread = require("zipread");
var zip = zipread("file.zip");

var contents = zip.readFileSync("some_file.txt").toString();

// Or for async version:
zip.readFile("some_file.txt", function (err, buf) {
	contents = buf.toString();
});

zipread/hooks

zipread also provides a set of fs hooks to require node modules directly from ZIP.

Create a modules archive:

$ (cd node_modules && zip -r ../mods.zip *)
$ rm -r node_modules

Require a module explicitly:

require("zipread/hooks"); // Install hooks
require("./mods.zip/request");	// Load 'request' from mods.zip

Or implicitly by setting NODE_PATH:

$ NODE_PATH=./mods.zip node ./yourapp.js

In this case, you still have to require the hook but the rest can be untouched:

require("zipread/hooks");
require("request");

A good use case for this would be shipping desktop applications. For example, Windows doesn't like long paths and putting your huge node_modules directory into a single archive should solve this problem.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].