Catalog npm
Back to packageRELEASE DETAILS

1.0.16

npm

7zip-bin-wrapper

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

Published18 Sept 2020
Direct dependencies14
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 15

Native requirements
14 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
split2
Environment
{
  "local_name": "split2",
  "alias": false,
  "peer_metadata": null
}
^3.2.2runtime
iconv-lite
Environment
{
  "local_name": "iconv-lite",
  "alias": false,
  "peer_metadata": null
}
^0.6.2runtime
source-map-support
Environment
{
  "local_name": "source-map-support",
  "alias": false,
  "peer_metadata": null
}
^0.5.19runtime
gulp
Environment
{
  "local_name": "gulp",
  "alias": false,
  "peer_metadata": null
}
^4.0.2development
ts-node
Environment
{
  "local_name": "ts-node",
  "alias": false,
  "peer_metadata": null
}
^9.0.0development
7zip-bin
Environment
{
  "local_name": "7zip-bin",
  "alias": false,
  "peer_metadata": null
}
^5.0.3development
typescript
Environment
{
  "local_name": "typescript",
  "alias": false,
  "peer_metadata": null
}
^4.0.2development
@types/node
Environment
{
  "local_name": "@types/node",
  "alias": false,
  "peer_metadata": null
}
^14.11.1development
ttypescript
Environment
{
  "local_name": "ttypescript",
  "alias": false,
  "peer_metadata": null
}
^1.5.12development
@types/split2
Environment
{
  "local_name": "@types/split2",
  "alias": false,
  "peer_metadata": null
}
^2.1.6development
@build-script/builder
Environment
{
  "local_name": "@build-script/builder",
  "alias": false,
  "peer_metadata": null
}
^2.0.21development
@build-script/single-dog-asset
Environment
{
  "local_name": "@build-script/single-dog-asset",
  "alias": false,
  "peer_metadata": null
}
^1.0.8development
@build-script/export-all-in-one
Environment
{
  "local_name": "@build-script/export-all-in-one",
  "alias": false,
  "peer_metadata": null
}
^3.0.18development
@build-script/typescript-transformer-dual-package
Environment
{
  "local_name": "@build-script/typescript-transformer-dual-package",
  "alias": false,
  "peer_metadata": null
}
^1.0.14development
7zip-bin
Environment
{
  "local_name": "7zip-bin",
  "alias": false,
  "peer_metadata": null
}
latestpeer

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "shasum": "6dab5a51580c337769b85db711e5dfb59c8574f3",
  "tarball": "https://registry.npmjs.org/7zip-bin-wrapper/-/7zip-bin-wrapper-1.0.16.tgz",
  "fileCount": 38,
  "integrity": "sha512-NmEyxAd1C2XfebRaH+IWsBF2cdOYcdt1GXF3Qna1FdWQPINQsvyOKqG23O77t9A9m3cUuNfNBEWF2Lj43LnXqA==",
  "signatures": [
    {
      "sig": "MEUCIA28UbYGE7I2tWaY2ViH6HdzcyAxF3htH4nupAEO1eNDAiEA8mk7/fmsJQRIePd2Q6jf6v2Ak1u/zl84n4pssXHksBo=",
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"
    }
  ],
  "unpackedSize": 61188,
  "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfZKZYCRA9TVsSAnZWagAAhREP/jasE3QonvcqpcPgFDbq\n4xyGmQGmDxauQaoKcPUr9JaZd8d5elBGIsoaJ8RGMUQ57sVYY88mu5FR2W68\nyOP0UEvIftzfgiUyML35+zfs3iY0mFoQjKj//rEPFrYG+UDmRDHkCmVQCxfp\nPDQvQe4N+9eGm8Al/4NsOqc87uFirLNbAfkglJN/mKfbFjOMBuE3JsQt8o8T\nUoHXKtR/h9SD+yhLAPDUXUj7/k01gfBExC2jFKg48/kdbp+cehLOvifRft8R\nHJCodsJE+856fuiTX9a/1VUVbbFb+UwU5654hzE73E5dKLWIycSFgRGsQU8/\ngtaYIo7p0exyJw8kB+Sfoxs6f6kGct0XGy7BN+anO+OtWxR5u5myWsZ6vy8x\nhxBFb45D+DR5GbkX6iqnSU/UOJAfbgwyxnj55wKkgYoFQ4DJ1q+TqulKeDIl\n8toZQMMn5v6Z/xeJnxTQKcLt2+5AQIn1qpdfg5jGmZsTVmT0kv0ynYv4zbfF\nrWVcjMH8xaaDmHhv71QlPldFeqVa2aEoIns+566LsvvrZEW6bwtu4/h6PmcG\n4LqmsTlXePqn66ojaLKR79O1cfJYA8dw39SQX3eIGqpNNu5KfY+iEMOv0Dzr\nQrh1gk0/TLEeadmJSdTNk7k7Zelg1ZJZkam/+ynXOckFtd3BqycIbFKwfQb5\nG4Q7\r\n=Jorf\r\n-----END PGP SIGNATURE-----\r\n"
}

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_version:5e0983c241718e1719bfccc23c42bdabd9f6b3bdf5df1943daa3dee4b02cff30

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 →