Skip to content

Leverage the power of 7-zip in your Node.js applications.

License

Notifications You must be signed in to change notification settings

pixdif/sevenzip

Repository files navigation

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

Compress and extract files

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

const example = new Archive('my-archive.7z');
await example.add('file1.txt', 'file2.txt');

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

Find installed 7-Zip

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

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

About

Leverage the power of 7-zip in your Node.js applications.

Resources

License

Stars

Watchers

Forks

Packages

No packages published