Catalog npm
Back to packageRELEASE DETAILS

1.0.48

npm

7zip-bin-wrapper

Wrapper script for [7zip-bin](https://www.npmjs.com/package/7zip-bin)

Published20 Aug 2025
Direct dependencies3
Transitive dependenciesNot calculated

README

Current package documentation

7zip-bin-wrapper

Wrapper script for 7zip-bin

Parsing output from 7za, create progress event.

Params used by this package: (not able to use your self)

  • -bs??
  • -y

Progress created from 7za output line:

/^(\d+[%M])(?: - )?(.*)$/

Data Define:

interface IStatusReport {
	progress: number; // 0 ~ 100
	message: string;
}

interface TheHandler {
	on(event: 'progress', cb: (progress: IStatusReport) => void): this;
	on(event: 'output', cb: (data: string) => void): this;
	/** by default, 7z will run at nextTick, but you can use hold() to prevent it */
	hold(): void;
	/** terminate 7z process */
	cancel(): Promise<void>;
	/** command line to run */
	readonly commandline: ReadonlyArray<string>;
	/** 7z's cwd */
	readonly cwd: string;
	/** wait process complete */
	promise(): Promise<void>;
}

Usage:

import { sevenZip, sevenZipCli, extract, compress } from '7zip-bin-wrapper';

let handler: TheHandler;

// run raw command
handler = sevenZip('x', 'xxx.7z');
// run raw command, with spawn Option
handler = sevenZip({ cwd: '/tmp' }, 'x', 'xxx.7z');

// prevent add -y to 7za, and inherit stdin
handler = sevenZipCli('x', 'xxx.7z');

handler = extract('xxx.7z', 'some/where/else');
handler = compress('xxx.7z', 'to/include/', 'another/include/');

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 3

Native requirements
3 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
split2
Environment
{
  "local_name": "split2",
  "alias": false,
  "peer_metadata": null
}
^4.2.0runtime
7zip-bin
Environment
{
  "local_name": "7zip-bin",
  "alias": false,
  "peer_metadata": null
}
^5.2.0runtime
iconv-lite
Environment
{
  "local_name": "iconv-lite",
  "alias": false,
  "peer_metadata": null
}
^0.6.3runtime

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "shasum": "957e855c3945e6a685f8192072d5e64adc0fa62b",
  "tarball": "https://registry.npmjs.org/7zip-bin-wrapper/-/7zip-bin-wrapper-1.0.48.tgz",
  "fileCount": 20,
  "integrity": "sha512-ZoYlBJk/J8MQ9cWif9rSNN0DGKoDzNpwPIAJC/aawTIFpx5LnLkp73KmJ4RwIxgyMKPxqVGylex+bbNUndn7oA==",
  "signatures": [
    {
      "sig": "MEUCIFvWpJ6tTLBlVGVeOi+6MiY5sFrw2Vr8nKYe+BXi8upBAiEAnlr4yTRqvF/2PdkKUoS9P7h87knyXyoQuqcdL0GuVPg=",
      "keyid": "SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"
    }
  ],
  "unpackedSize": 34618
}

Repository

PENDING
gongt/7zip-bin-wrapper

Shared repository data · GitHub

License detected in repository
Not collected

Repository

PENDING
gongt/baobao

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 21:15 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:cfa6d5962131de4e2f74d3ef1c1d8a2d694c8f092ad73c50b05c1f4743cafe8b

Other collected versions

1.0.5926 Sept1.0.588 Aug1.0.572 Apr1.0.5628 Mar1.0.5519 Mar1.0.5419 MarView all collected versions →