[go: up one dir, main page]

@pixdif/sevenzip
TypeScript icon, indicating that this package has built-in type declarations

0.3.0 • Public • Published

Node.js Library for 7-Zip Node.js CI

This is a Node.js Library to find and run 7-Zip.

License

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License along with this program. If not, see http://www.gnu.org/licenses/.

Environment

  • Node v18.x or later versions

Get Started

Find installed 7-Zip

import { SevenZip } from '@pixdif/sevenzip';

const zip = new SevenZip();
await zip.findInstalled();

Compress and extract files

import { SevenZip, Archive } from '@pixdif/sevenzip';

const zip = new SevenZip({ executable: '7z' });
const example = new Archive(zip, 'my-archive.7z');
await example.add('file1.txt', 'file2.txt');

await example.extract({
	outputDir: 'my-archive',
	ignoreDirs: true,
});

Readme

Keywords

Package Sidebar

Install

npm i @pixdif/sevenzip

Weekly Downloads

0

Version

0.3.0

License

MIT

Unpacked Size

16.9 kB

Total Files

23

Last publish

Collaborators

  • takashiro