archive-type-cli

Detect the archive type of a file or stdin

Usage no npm install needed!

<script type="module">
  import archiveTypeCli from 'https://cdn.skypack.dev/archive-type-cli';
</script>

README

archive-type-cli Build Status

Detect the archive type of a file or stdin

Install

$ npm install --global archive-type-cli

Usage

$ archive-type --help

  Usage
    $ archive-type <file>
    $ cat <file> | archive-type

  Examples
    $ archive-type foo.zip
    zip
    $ cat foo.tar | archive-type
    tar

Related

License

MIT © Kevin Mårtensson