Use your 7-Zip at ease
npm install @pixdif/sevenzipThis is a Node.js Library to find and run 7-Zip.
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
TypeScript
import { SevenZip } from '@pixdif/sevenzip';const zip = new SevenZip();
await zip.findInstalled();
`$3
`TypeScript
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,
});
``