Catalog npm
Back to packageRELEASE DETAILS

1.0.24

npm

7zip-bin-wrapper

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

Published23 Jun 2022
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
tslib
Environment
{
  "local_name": "tslib",
  "alias": false,
  "peer_metadata": null
}
^2.4.0runtime
split2
Environment
{
  "local_name": "split2",
  "alias": false,
  "peer_metadata": null
}
^4.1.0runtime
iconv-lite
Environment
{
  "local_name": "iconv-lite",
  "alias": false,
  "peer_metadata": null
}
^0.6.3runtime
source-map-support
Environment
{
  "local_name": "source-map-support",
  "alias": false,
  "peer_metadata": null
}
^0.5.21runtime
gulp
Environment
{
  "local_name": "gulp",
  "alias": false,
  "peer_metadata": null
}
^4.0.2development
7zip-bin
Environment
{
  "local_name": "7zip-bin",
  "alias": false,
  "peer_metadata": null
}
^5.2.0development
typescript
Environment
{
  "local_name": "typescript",
  "alias": false,
  "peer_metadata": null
}
^4.7.4development
@types/node
Environment
{
  "local_name": "@types/node",
  "alias": false,
  "peer_metadata": null
}
^18.0.0development
ttypescript
Environment
{
  "local_name": "ttypescript",
  "alias": false,
  "peer_metadata": null
}
^1.5.13development
@types/split2
Environment
{
  "local_name": "@types/split2",
  "alias": false,
  "peer_metadata": null
}
^3.2.1development
@build-script/builder
Environment
{
  "local_name": "@build-script/builder",
  "alias": false,
  "peer_metadata": null
}
workspace:^3.2.5development
@build-script/single-dog-asset
Environment
{
  "local_name": "@build-script/single-dog-asset",
  "alias": false,
  "peer_metadata": null
}
workspace:^1.0.18development
@build-script/export-all-in-one
Environment
{
  "local_name": "@build-script/export-all-in-one",
  "alias": false,
  "peer_metadata": null
}
workspace:^3.1.3development
@build-script/typescript-transformer-dual-package
Environment
{
  "local_name": "@build-script/typescript-transformer-dual-package",
  "alias": false,
  "peer_metadata": null
}
workspace:^1.0.26development
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": "ed5809ec29c742d2c5031ef9feaab0248da5f3c6",
  "tarball": "https://registry.npmjs.org/7zip-bin-wrapper/-/7zip-bin-wrapper-1.0.24.tgz",
  "fileCount": 31,
  "integrity": "sha512-9bcH0lEraOisgMEP/lQnY6Qxyn/ELXDJFzPdvdxFPFS7gWfxEuTHK4YnWrKuxllr2XvdAPzOnm4XedoqfpXrCw==",
  "signatures": [
    {
      "sig": "MEQCIGugIXfA7HW7K4cj1FGMShUeETOAC0EEfgz9W/UidMvpAiAG2xJE1FamHj6hk7g0K7cRVvJRVDqDh/OoIue+YPKkCA==",
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"
    }
  ],
  "unpackedSize": 51565,
  "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJitCzNACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoyCg//WcrKAnRXBIImv84ZfOl8yKD60ICPv8nr5IQ7fAedALmyLGwb\r\nxTSJ4Y1Oo9CEeMpza2RJ2e81MM3/wUht62fv1QrndLH8qmMP4KFP5IRj4BgD\r\nZZKYfw8f3E95TBakqN7wLSQbDRpPF0lpLEPPq04RLj4FuYFVbumuKNQeGAKf\r\nPhRVppyvygYLvNTUezi2s8gAT/7pWUMmCr0lloTbUKw1yQj0dLAwWGGlIzvR\r\nM6bxsGZna0tIlx16Vx7gOxKoAhZeoe3iGtfwQaNw8UC+H4a/LWy5dDXOSF9j\r\n16PydkYXH9X4r7W/6dmW1J9ZyCFCrNnjypQ2C9L+Tt7Ds0ky1OZhhAbVxqiP\r\nARrD+m6ARi6tmNkUoip3vCuHuOegnp3nOibVWV2T0xgi3+xOYcIqLWr4ScIM\r\nZZjx3zLJuQCf2H8BJqpRv97oig5nm7JpT2B3ex53YuN7rqb18qcNtGD+fYJQ\r\nn1ZzxM1lvXThKHBkC9v3DVfIe1AXjUVsU8hKB8w177QLMiUKDXk+jTVic39w\r\nFNJm8FobBC2cJTEqQ3UPbmUR6Xj0tOFWXpS6lIuMDhbm3JSnc6tTSupVng8o\r\nHxHj4JmKQQbQHlS0FiVmU7xWYKD8mgt5HaOi0Dx3FvLLNao+/Qr0GJfjEOAX\r\nGs2tp/MpPABinlCi6If8c0wXQpwHITr0bjs=\r\n=MXvH\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:f3ad2e32ad0fae6bf301fdaad9f0904e6b3ae279f39ab66d99fa2f9584bfbbf0

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 →