Files
old-lab_ui/node_modules/bower/lib/node_modules/ext-name
2019-06-04 13:11:32 -04:00
..
2019-06-04 13:11:32 -04:00
2019-06-04 13:11:32 -04:00
2019-06-04 13:11:32 -04:00
2019-06-04 13:11:32 -04:00

ext-name Build Status

Get the file extension and MIME type from a file

Install

$ npm install --save ext-name

Usage

var extName = require('ext-name');

console.log(extName('foobar.tar'));
//=> {'ext': 'tar', 'mime': 'application/x-tar'}

CLI

$ npm install --global ext-name
  $ ext-name --help

  Usage
    $ ext-name <file>

  Example
    $ ext-name file.tar.gz

License

MIT © Kevin Mårtensson