- Notifications
You must be signed in to change notification settings - Fork3
📤 extract .zip, .gz, .bz2, .tar, .tar.gz, .tgz, .tar.bz2
License
NotificationsYou must be signed in to change notification settings
coderaiser/node-inly
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Extract .zip, .gz, .bz2, .tar, tar.gz, tar.bz2, .tgz, .tbz2 archives with emitter.
inly
could be installed global with
npm i inly -g
And used this way:
Usage: inly [filename]Options: -h, --help display this help and exit -v, --version output version information and exit
inly
could be used localy. It will emit event on every packed/extracted file.Good for making progress bars.
npm i inly --save
from
- path to archiveto
- path to directory where files would be stored.
constinly=require('inly');constpath=require('path');constcwd=process.cwd();constname='pipe.zip';constto=`${cwd}/pipe-io`;constfrom=path.join(cwd,name);constextract=inly(from,to);extract.on('file',(name)=>{console.log(name);});extract.on('progress',(percent)=>{console.log(`${percent}%`);});extract.on('error',(error)=>{console.error(error);});extract.on('end',()=>{console.log('done');});
In case of starting example output should be similar to (but with additional events):
33%67%100%done
- OneZip - Pack and extract .zip archives with emitter.
- Bizzy - Pack and extract .tar.bz2 archives with emitter.
- Jaguar - Pack and extract .tar.gz archives with emitter.
- Jag - Pack files and folders with tar and gzip.
- Tar-to-zip - Convert tar and tar.gz archives to zip.
- Copymitter - Copy files with emitter.
- Remy - Remove files with emitter.
MIT
About
📤 extract .zip, .gz, .bz2, .tar, .tar.gz, .tgz, .tar.bz2
Topics
Resources
License
Stars
Watchers
Forks
Packages0
No packages published