Get the file extension and MIME type from a file
JavaScript
Latest commit c50c3b8 May 21, 2016 @kevva 4.0.0
Permalink
Failed to load latest commit information.
.editorconfig
.gitattributes
.gitignore
.travis.yml
index.js
license
package.json
readme.md
test.js

readme.md

ext-name Build Status

Get the file extension and MIME type from a file

Install

$ npm install --save ext-name

Usage

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

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

Related

License

MIT © Kevin Mårtensson