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.1910 Mar 202115
1.0.184 Mar 202114
1.0.1721 Oct 202014
1.0.1618 Sept 202014
1.0.1516 Sept 202013
1.0.1415 Sept 202013
1.0.1315 Sept 202013
1.0.1214 Sept 202013
1.0.1115 Jul 202013
1.0.1021 May 201910
1.0.97 Jan 201910
1.0.87 Jan 201910
1.0.77 Jan 201910
1.0.628 Dec 201810
1.0.528 Dec 20189
1.0.418 Dec 20189
1.0.318 Dec 20189
1.0.216 Dec 20189
1.0.112 Dec 20189
1.0.011 Dec 20189

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