Skip to content
/ n7za Public

Simple Node.js wrapper for 7-zip command line (7za) with native binaries embeded(win, mac, linux), no other install needed

License

Notifications You must be signed in to change notification settings

zhsoft88/n7za

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

n7za

Simple Node.js wrapper for 7-zip command line (7za) with native binaries embeded(win, mac, linux), no other install needed

Installation

$ [sudo] npm install -g n7za

Usage

n7za [ARGS]...

ARGS: the normal 7za command line arguments.

As Nodejs Module

const n7za = require('n7za')
n7za(['a', '-r', 'output.7z', 'a.txt', 'dir_to_my_data'], {
// process stdio data.
//  on_stdio: (data) => {
//    ......
//  },
// process stderr data.
//  on_stderr: (data) => {
//    ......
//  },
// on_close call when n7za running finished.
  on_close: (code) => {
    process.exit(code)
  }
})

About

Simple Node.js wrapper for 7-zip command line (7za) with native binaries embeded(win, mac, linux), no other install needed

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published