{"_id":"extname","_rev":"45155","name":"extname","description":"Get the file extension and MIME type from a file","dist-tags":{"latest":"0.1.5"},"maintainers":[{"name":"kevva","email":""}],"time":{"modified":"2021-06-03T10:13:54.000Z","created":"2014-08-09T18:18:47.702Z","0.1.5":"2014-08-09T18:18:47.702Z"},"users":{},"author":{"name":"Kevin Mårtensson","email":"kevinmartensson@gmail.com","url":"https://github.com/kevva"},"repository":{"type":"git","url":"git://github.com/kevva/ext-name"},"versions":{"0.1.5":{"name":"extname","version":"0.1.5","description":"Get the file extension and MIME type from a file","license":"MIT","repository":{"type":"git","url":"git://github.com/kevva/ext-name"},"author":{"name":"Kevin Mårtensson","email":"kevinmartensson@gmail.com","url":"https://github.com/kevva"},"engines":{"node":">=0.10.0"},"bin":{"extname":"cli.js"},"scripts":{"test":"mocha --reporter list"},"files":["cli.js","index.js"],"keywords":["ext","extname","mime"],"dependencies":{"ext-list":"^0.2.0","map-key":"^0.1.1","underscore.string":"~2.3.3"},"devDependencies":{"mocha":"^1.18.2"},"bugs":{"url":"https://github.com/kevva/ext-name/issues"},"homepage":"https://github.com/kevva/ext-name","_id":"extname@0.1.5","_shasum":"3cbb388d0dac6086c53133cdfa108074d8a7552e","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"kevva","email":"kevinmartensson@gmail.com"},"maintainers":[{"name":"kevva","email":""}],"dist":{"shasum":"3cbb388d0dac6086c53133cdfa108074d8a7552e","size":1397,"noattachment":false,"key":"/extname/-/extname-0.1.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/extname/download/extname-0.1.5.tgz"},"directories":{},"publish_time":1407608327702,"_cnpm_publish_time":1407608327702,"_hasShrinkwrap":false}},"readme":"# ext-name [![Build Status](https://travis-ci.org/kevva/ext-name.svg?branch=master)](https://travis-ci.org/kevva/ext-name)\n\n> Get the file extension and MIME type from a file\n\n## Install\n\n```bash\n$ npm install --save ext-name\n```\n\n## Usage\n\n```js\nvar extname = require('ext-name');\n\nextname('foobar.tar', function (err, res) {\n    if (err) {\n        throw err;\n    }\n\n    console.log(res);\n    // => { 'ext': 'tar', 'mime': 'application/x-tar' }\n});\n```\n\n## CLI\n\n```bash\n$ npm install --global ext-name\n```\n\n```bash\n$ extname --help\n\nUsage\n  $ extname <file>\n\nExample\n  $ extname file.tar.gz\n```\n\n## License\n\nMIT © [Kevin Mårtensson](https://github.com/kevva)\n","_attachments":{},"homepage":"https://github.com/kevva/ext-name","bugs":{"url":"https://github.com/kevva/ext-name/issues"},"license":"MIT"}