Git Product home page Git Product logo

sevenzip's Introduction

sevenzip

sevenzip is a wrapper around 7za.exe for Windows, Linux and Mac. The goal is to provide a unique and an easy way to compress and extract multiple archives format.

Motivation

I cannot find any NPM module that can compress in LZMA easily. They usally bind the command line without any modification to understand it better.

Dependencies

The platform support for Windows, Linux and Mac is done by using 7za. It's a command line version of 7z published by the author.

Installation

npm install @steezcram/sevenzip --save

Usage

Simply include the module with this code:

const sevenzip = require('@steezcram/sevenzip');

Documentation

Methods

Objects

sevenzip's People

Contributors

steezcram avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

sevenzip's Issues

Linux install error

System Linux 5.15.72-1-MANJARO
node -v v18.10.0
node-gyp -v v8.4.1
node-pre-gyp -v v1.0.10
# snip
fatal error: Windows.h: No such file or directory
   24 | #include <Windows.h>
# snip
command "/usr/bin/node" "/node_modules/@steezcram/sevenzip/node_modules/node-gyp/bin/node-gyp.js" "build" "---build-from-source" "--module=/node_modules/@steezcram/sevenzip/lib/linux/x64/sevenzip.node" "--module_name=sevenzip" "--module_path=/node_modules/@steezcram/sevenzip/lib/linux/x64" "--napi_version=8" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v108"

error windows

Z:\ahsan\node_modules@steezcram\sevenzip\index.js:222
progress: parseInt(dataArr[dataArr.length - 4].slice(0, -1), 10),
^

TypeError: Cannot read properties of undefined (reading 'slice')
at parseProgress (Z:\ahsan\node_modules@steezcram\sevenzip\index.js:222:56)
at Socket. (Z:\ahsan\node_modules@steezcram\sevenzip\index.js:127:3
4)
at Socket.emit (node:events:539:35)
at addChunk (node:internal/streams/readable:324:12)
at readableAddChunk (node:internal/streams/readable:293:11)
at Socket.Readable.push (node:internal/streams/readable:234:10)
at Pipe.onStreamRead (node:internal/stream_base_commons:190:23)

Node.js v17.9.0

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.