Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

inly

coderaiser3.6kMIT5.0.1

extract .zip, .gz, .bz2, .tar, .tar.gz, .tgz, .tbz2

extract, zip, gzip, bzip2, tar, gz, bz2, tgz, tar.gz, tar.bz2, tbz2, unzip

readme

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

changelog

2024.02.01, v5.0.1

fix:

  • 05b6c38 badges

2024.02.01, v5.0.0

feature:

  • bb1bdb3 inly: try-catch v3.0.1
  • 43abe97 inly: nodemon v3.0.3
  • a40e0f7 inly: eslint v8.56.0
  • d405759 inly: onezip v6.0.2
  • 6962ba5 drop support of node < 18
  • 694f24f inly: eslint-plugin-n v16.6.2
  • 194d268 inly: madrun v10.0.1
  • 3d028d8 inly: eslint-plugin-putout v22.3.1
  • 6ea7ce9 inly: supertape v10.0.0
  • a1c2c34 inly: putout v35.0.1
  • 31fcc93 inly: yargs-parser v21.1.1
  • dd0b97d inly: glob v10.3.10

2020.09.11, v4.0.8

feature:

  • (package) yargs-parser v20.0.0

2020.08.11, v4.0.7

feature:

  • (package) yargs-parser v19.0.1

2020.08.06, v4.0.6

feature:

  • (package) eslint-plugin-putout v5.0.1
  • (package) through2 v4.0.2
  • (package) putout v9.11.0
  • (package) eslint-plugin-node v11.1.0
  • (package) eslint v7.6.0
  • (package) madrun v7.0.1
  • (package) supertape v2.0.1
  • (package) yargs-parser v18.1.3

2020.02.26, v4.0.5

feature:

  • (package) eslint-plugin-node v11.0.0
  • (package) nyc v15.0.0
  • (package) yargs-parser v17.0.0
  • (package) try-to-catch v3.0.0

2019.12.19, v4.0.4

feature:

  • (package) putout v7.3.1
  • (package) madrun v5.0.1
  • (package) jaguar v6.0.0
  • (package) eslint-plugin-putout v3.0.0
  • (package) nodemon v2.0.2

2019.10.28, v4.0.3

feature:

  • (package) yargs-parser v16.0.0
  • (package) madrun v4.1.1

2019.10.16, v4.0.2

feature:

  • (package) try-to-catch v2.0.0

2019.10.16, v4.0.1

feature:

  • (package) onezip v4.0.0

2019.10.16, v4.0.0

feature:

  • (inly) drop support of node < 10
  • (package) yargs-parser v15.0.0

2019.09.18, v3.0.4

feature:

  • (inly) madrun
  • (package) rimraf v3.0.0
  • (package) pipe-io v4.0.0
  • (package) nyc v14.1.1
  • (package) eslint-plugin-node v10.0.0
  • (package) eslint v6.4.0
  • (package) yargs-parser v14.0.0

2018.11.29, v3.0.3

feature:

  • (package) eslint-plugin-node v8.0.0
  • (package) through2 v3.0.0
  • (package) yargs-parser v11.1.1

2018.09.28, v3.0.2

feature:

  • (package) bizzy v3.0.0

2018.09.28, v3.0.1

feature:

  • (package) onezip v3.0.0

2018.09.28, v3.0.0

feature:

  • (package) nyc v13.0.1
  • (package) jaguar v5.0.0
  • (package) redrun v7.0.0
  • (package) eslint-plugin-node v7.0.1
  • (package) eslint v5.6.0
  • (package) drop support of node < 8
  • (travis) add node v10

2018.05.02, v2.0.2

fix:

  • (inly) rm legacy

2018.05.02, v2.0.1

feature:

  • (package) onezip v2.0.0
  • (package) jaguar v4.0.0
  • (package) bizzy v2.0.1

2018.05.02, v2.0.0

feature:

  • (package) add eslint-plugin-node
  • (package) pipe-io v3.0.0
  • (inly) drop support of node < 4
  • (package) rm jshin, jscs

2018.04.20, v1.2.5

feature:

  • (package) yargs-parser v10.0.0
  • (package) redrun v6.0.0

2018.03.05, v1.2.4

feature:

  • (package) yargs-parser v9.0.2
  • (package) preset: es2015 -> env

2017.10.05, v1.2.3

feature:

  • (package) yargs-parser v8.0.0
  • (package) coveralls v3.0.0
  • (package) nyc v11.0.2
  • (package) eslint v4.0.0

2017.05.10, v1.2.2

feature:

  • (package) yargs-parser v7.0.0

2017.04.24, v1.2.1

fix:

  • (inly) tbz -> tbz2
  • test(fixture) .tar.bz2

2017.04.21, v1.2.0

feature:

  • (inly) add support of .tar.bz2

2017.04.21, v1.1.0

feature:

  • (inly) add bzip2 support

2017.02.21, v1.0.5

fix:

  • (gzip) pipe-io -> pipe-io/legacy: support of node < 4

2017.02.21, v1.0.4

fix:

  • (package) through2 v2.0.3

2017.02.20, v1.0.3

fix:

  • (package) add pipe-io (closes #1)

feature:

  • (package) yargs-parser v5.0.0

2017.01.27, v1.0.2

feature:

  • (package) rm unused async

2017.01.26, v1.0.1

feature:

  • (package) rm umkdirp