Name Last Update
..
cli.js Loading commit data...
index.js Loading commit data...
license Loading commit data...
package.json Loading commit data...
readme.md Loading commit data...

readme.md

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