Catalog npm
PACKAGE EXPLORERView in registry

7zip-bin-wrapper

npm

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

Versions collected60
Direct dependencies6From release 1.0.59
Last observed20 Oct, 21:15 UTC

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.

Versions 60

Collected releases
VersionPublishedDirect dependenciesOpen version
1.0.59Registry latest26 Sept 20266
1.0.588 Aug 20266
1.0.572 Apr 20266
1.0.5628 Mar 20267
1.0.5519 Mar 20267
1.0.5419 Mar 20267
1.0.533 Feb 20267
1.0.523 Feb 20267
1.0.5117 Jan 20267
1.0.5025 Sept 20257
1.0.4926 Aug 20257
1.0.4820 Aug 20253
1.0.4719 Aug 20259
1.0.468 Aug 202510
1.0.455 Aug 202510
1.0.443 Aug 202510
1.0.4328 Jul 202510
1.0.4223 Jul 202510
1.0.4123 Jul 202510
1.0.4026 May 20259

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

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:14 UTC

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

Record identity

package:807ac8ae85054dd8c961599568c168333b7a854ce37a42a3d99890572ee4d86f