Detect the archive type of a file or stdin
$ npm install --global archive-type-cli
$ archive-type --help
Usage
$ archive-type <file>
$ cat <file> | archive-type
Examples
$ archive-type foo.zip
zip
$ cat foo.tar | archive-type
tar
- archive-type - API for this module
- file-type-cli - Detect the file type of a file or stdin
MIT © Kevin Mårtensson