5.0.1 • Published 3 months ago

inly v5.0.1

Weekly downloads
2,380
License
MIT
Repository
github
Last release
3 months ago

Inly License NPM version Build Status Coverage Status

Extract .zip, .gz, .bz2, .tar, tar.gz, tar.bz2, .tgz, .tbz2 archives with emitter.

Global

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

Local

inly could be used localy. It will emit event on every packed/extracted file. Good for making progress bars.

Install

npm i inly --save

How to use?

inly(from, to)

  • from - path to archive
  • to - path to directory where files would be stored.
const inly = require('inly');
const path = require('path');
const cwd = process.cwd();
const name = 'pipe.zip';
const to = `${cwd}/pipe-io`;
const from = path.join(cwd, name);

const extract = 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

Related

  • 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.

License

MIT

5.0.1

3 months ago

5.0.0

3 months ago

4.0.8

4 years ago

4.0.7

4 years ago

4.0.6

4 years ago

4.0.5

4 years ago

4.0.4

4 years ago

4.0.3

5 years ago

4.0.2

5 years ago

4.0.1

5 years ago

4.0.0

5 years ago

3.0.4

5 years ago

3.0.3

5 years ago

3.0.2

6 years ago

3.0.1

6 years ago

3.0.0

6 years ago

2.0.2

6 years ago

2.0.1

6 years ago

2.0.0

6 years ago

1.2.5

6 years ago

1.2.4

6 years ago

1.2.3

7 years ago

1.2.2

7 years ago

1.2.1

7 years ago

1.2.0

7 years ago

1.1.0

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago