acme / archive-peek-libarchive Goto Github PK
View Code? Open in Web Editor NEWPeek into archives without extracting them (using libarchive)
Home Page: http://search.cpan.org/dist/Archive-Peek-Libarchive/
License: Other
Peek into archives without extracting them (using libarchive)
Home Page: http://search.cpan.org/dist/Archive-Peek-Libarchive/
License: Other
NAME Archive::Peek::Libarchive - Peek into archives without extracting them (using libarchive) SYNOPSIS use Archive::Peek::Libarchive; my $peek = Archive::Peek::Libarchive->new( filename => 'archive.tgz' ); my @files = $peek->files(); my $contents = $peek->file('README.txt') $peek->iterate( sub { my ( $filename, $contents ) = @_; ... } ); DESCRIPTION This module lets you peek into archives without extracting them. This is a wrapper to the libarchive C libary (http://code.google.com/p/libarchive/), which you must have installed (libarchive-dev package for Debian/Ubuntu). It supports many different archive formats and compression algorithms and is fast. METHODS new The constructor takes the filename of the archive to peek into: my $peek = Archive::Peek::Libarchive->new( filename => 'archive.tgz' ); files Returns the files in the archive: my @files = $peek->files(); file Returns the contents of a file in the archive: my $contents = $peek->file('README.txt') iterate Iterate over all the files in the archive: $peek->iterate( sub { my ( $filename, $contents ) = @_; ... } ); AUTHOR Leon Brocard <[email protected]> COPYRIGHT Copyright (C) 2011, Leon Brocard. LICENSE This module is free software; you can redistribute it or modify it under the same terms as Perl itself.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.