{"_id":"mimetypes","_rev":"7-c77bd9e6d9f948ccbf1df398de0f460c","name":"mimetypes","description":"`mimetypes` allows you to detect file extensions for content types and vice-versa.","dist-tags":{"latest":"0.1.1"},"versions":{"0.1.1":{"name":"mimetypes","version":"0.1.1","description":"`mimetypes` allows you to detect file extensions for content types and vice-versa.","main":"src/mimetypes.js","homepage":"https://github.com/whiteout-io/mimetypes","scripts":{"test":"grunt"},"repository":{"type":"git","url":"git://github.com/whiteout-io/mimetypes.git"},"author":{"name":"Andris Reinman","email":"andris@kreata.ee"},"license":"MIT","bugs":{"url":"https://github.com/whiteout-io/mimetypes/issues"},"dependencies":{},"devDependencies":{"chai":"~1.8.1","grunt":"~0.4.1","grunt-mocha-phantomjs":"~0.4.0","grunt-contrib-connect":"~0.6.0","grunt-contrib-jshint":"~0.8.0","grunt-mocha-test":"~0.8.1","mocha":"~1.16.2","phantomjs":"~1.9.7-1","requirejs":"~2.1.10"},"volo":{},"_id":"mimetypes@0.1.1","_shasum":"ef3d3b3d8a3c498df82b7de9d4db0f6e8e451208","_from":".","_npmVersion":"1.4.10","_npmUser":{"name":"felixhammerl","email":"mail@felixhammerl.com"},"maintainers":[{"name":"felixhammerl","email":"mail@felixhammerl.com"}],"dist":{"shasum":"ef3d3b3d8a3c498df82b7de9d4db0f6e8e451208","tarball":"https://registry.npmjs.org/mimetypes/-/mimetypes-0.1.1.tgz","integrity":"sha512-oLlh4gswquxtVNXixpQo9+V4ScphCk6g6ip9L/UAltfcs/sE+mPeua4Yc6q/zgxVgK8u5njo+Dgj/A+wit728g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDYfJofYnGvOGAlwp0G6EKeMlSs+dGQbibthCrSxIk/KgIhAIl0H5nQwkzpBfVlt2YBFsksixv8LuABfH4GBfezOfDU"}]}}},"readme":"# MIME Types\n\n`mimetypes` is a UMD module that allows you to detect file extensions for content types and vice-versa.\n\n[![Build Status](https://travis-ci.org/whiteout-io/mimetypes.png?branch=master)](https://travis-ci.org/whiteout-io/mimetypes)\n\n## Installation\n\n### [volo](http://volojs.org/):\n\n    volo add whiteout-io/mimetypes/v0.1.1\n\n### [Bower](http://bower.io/):\n\n    bower install git@github.com:whiteout-io/mimetypes.git#v0.1.1\n\n### [npm](https://www.npmjs.org/):\n\n    npm install https://github.com/whiteout-io/mimetypes/tarball/v0.1.1\n\n## Usage\n\n### node.js and AMD\n\n    require('mimetypes');\n\n### Global context\n\n    // exposes global variable mimetypes\n    <script src=\"mimetypes.js\"></script>\n\n## Methods\n\n### #detectExtension\n\n Returns file extension for a content type string. If no suitable extensions are found, 'bin' is used as the default extension.\n\n    mimetypes.detectExtension(mimeType) -> String\n\n  * **mimeType** - Content type to be checked for\n\nFor example:\n\n    mimetypes.detectExtension('image/jpeg') // returns 'jpeg'\n\n### #detectMimeType\n\nReturns content type for a file extension. If no suitable content types are found, 'application/octet-stream' is used as the default content type\n\n    mimetypes.detectMimeType(extension) -> String\n\n  * **extension** Extension to be checked for\n\nFor example:\n\n    mimetypes.detectExtension('jpeg') // returns 'image/jpeg'\n\n## License\n\n    Copyright (c) 2013 Andris Reinman\n\n    Permission is hereby granted, free of charge, to any person obtaining a copy\n    of this software and associated documentation files (the \"Software\"), to deal\n    in the Software without restriction, including without limitation the rights\n    to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n    copies of the Software, and to permit persons to whom the Software is\n    furnished to do so, subject to the following conditions:\n\n    The above copyright notice and this permission notice shall be included in\n    all copies or substantial portions of the Software.\n\n    THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n    IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n    FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n    AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n    LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n    OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n    THE SOFTWARE.\n","maintainers":[{"name":"felixhammerl","email":"mail@felixhammerl.com"},{"name":"tanx","email":"info@tankredhase.de"},{"name":"andris","email":"andris@kreata.ee"}],"time":{"modified":"2022-06-19T19:58:26.341Z","created":"2014-07-25T10:44:42.836Z","0.1.1":"2014-07-25T10:44:42.836Z"},"homepage":"https://github.com/whiteout-io/mimetypes","repository":{"type":"git","url":"git://github.com/whiteout-io/mimetypes.git"},"author":{"name":"Andris Reinman","email":"andris@kreata.ee"},"bugs":{"url":"https://github.com/whiteout-io/mimetypes/issues"},"license":"MIT","readmeFilename":"README.md"}