Package Exports
- archive-type
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (archive-type) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
archive-type 
Detect the archive type of a Buffer/Uint8Array
Install
$ npm install --save archive-type
$ component install kevva/archive-type
$ bower install --save archive-type
Usage
var archiveType = require('archive-type');
var fs = require('fs');
var buf = fs.readFileSync('foo.zip');
archiveType(buf);
// => zip
CLI
You can also use it as a CLI app by installing it globally:
$ npm install --global archive-type
Usage
$ archive-type --help
Usage
$ cat <file> | archive-type
Example
$ cat foo.tar.gz | archive-type