{"_id":"@allegiant/mime","_rev":"3-12fc4a65d11e558fd25d445f0ebd2df2","name":"@allegiant/mime","description":"Simple mime library.","dist-tags":{"latest":"0.2.3"},"versions":{"0.2.1":{"name":"@allegiant/mime","version":"0.2.1","description":"Simple mime library.","author":{"name":"echopoint","email":"echopoint@tutanota.com"},"contributors":[],"license":"MIT","bugs":{"url":"https://github.com/allegiant-js/mime/issues"},"homepage":"https://github.com/allegiant-js/mime#readme","repository":{"type":"git","url":"git+https://github.com/allegiant-js/mime.git"},"main":"index.js","engine":{"node":"> 7.6"},"scripts":{"lint":"eslint .","test":"tape test/*.js","coverage":"tap test/*.js --coverage --coverage-report=lcov"},"dependencies":{},"devDependencies":{"eslint":"^4.12.1","jsdoc":"^3.5.5","tap":"^11.0.1","tape":"^4.8.0"},"gitHead":"3d1ffb65239c7e3a5d5d58e06a17e1bebec477fe","_id":"@allegiant/mime@0.2.1","_npmVersion":"5.5.1","_nodeVersion":"8.9.1","_npmUser":{"name":"echopoint","email":"echopoint@tutanota.com"},"dist":{"integrity":"sha512-Ty5QfyIo0GfuSzE10MECmacm0OSE55ClI+SVIfJ5uXYZYss/J6GgsNZgtEzE8eJ/ylrEwlQA3GIWFO0zzu1fxg==","shasum":"631996fe378f61fd94006caaa24b8ab6d9b0c87e","tarball":"https://registry.npmjs.org/@allegiant/mime/-/mime-0.2.1.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCOaozj1a8iZ00QZVQ9IRurE36Q/D1NDUXiyyOez3+XvQIhAM3hWS+oFebvT56n/VtMS980xcSy2JaLkbE0dd78eCHI"}]},"maintainers":[{"name":"echopoint","email":"echopoint@tutanota.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mime-0.2.1.tgz_1514515057937_0.29502857849001884"}},"0.2.2":{"name":"@allegiant/mime","version":"0.2.2","description":"Simple mime library.","author":{"name":"echopoint","email":"echopoint@tutanota.com"},"contributors":[],"license":"MIT","bugs":{"url":"https://github.com/allegiant-js/mime/issues"},"homepage":"https://github.com/allegiant-js/mime#readme","repository":{"type":"git","url":"git+https://github.com/allegiant-js/mime.git"},"main":"index.js","engine":{"node":"> 7.6"},"scripts":{"lint":"eslint .","test":"tap test/*.js","coverage":"tap test/*.js --coverage"},"dependencies":{},"devDependencies":{"coveralls":"^3.0.0","eslint":"^4.12.1","jsdoc":"^3.5.5","tap":"^11.0.1"},"gitHead":"4320634a92ac1a6c84b740f6debb7ae6eaac0b3f","_id":"@allegiant/mime@0.2.2","_npmVersion":"5.5.1","_nodeVersion":"8.9.1","_npmUser":{"name":"echopoint","email":"echopoint@tutanota.com"},"dist":{"integrity":"sha512-rn9+8odIFkXhyiFKq0lfXG2S5M99bbBfdrFo+JXs2edTqIELcnWapiiCBi0+50UJ1JpPD9UkvrCgF+ni2wSI1Q==","shasum":"f532c020cb811d5078e533e97d1b34e1af27bf35","tarball":"https://registry.npmjs.org/@allegiant/mime/-/mime-0.2.2.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCmmzc9mKNAihhBHPEfkueZz4Hbb1yr+xKfsFPcpem+nAIhAJaADwuDYZviVe3aONnyjGo3smxSGuyZtE/0oO3+Ppy7"}]},"maintainers":[{"name":"gabrielcsapo","email":"gabecsapo@gmail.com"},{"name":"echopoint","email":"echopoint@tutanota.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mime-0.2.2.tgz_1514566415843_0.3402141649276018"}},"0.2.3":{"name":"@allegiant/mime","version":"0.2.3","description":"Simple mime library.","author":{"name":"echopoint","email":"echopoint@tutanota.com"},"contributors":[],"license":"MIT","bugs":{"url":"https://github.com/allegiant-js/mime/issues"},"homepage":"https://github.com/allegiant-js/mime#readme","repository":{"type":"git","url":"git+https://github.com/allegiant-js/mime.git"},"main":"index.js","engine":{"node":"> 7.6"},"scripts":{"lint":"eslint .","test":"tap test/*.js","coverage":"tap test/*.js --coverage"},"dependencies":{},"devDependencies":{"coveralls":"^3.0.0","eslint":"^4.12.1","jsdoc":"^3.5.5","tap":"^11.0.1"},"gitHead":"ebdf361ddb0fca6ca2af6725a6734f06b48d69fc","_id":"@allegiant/mime@0.2.3","_npmVersion":"5.5.1","_nodeVersion":"8.9.1","_npmUser":{"name":"echopoint","email":"echopoint@tutanota.com"},"dist":{"integrity":"sha512-Al/75voTSV4mveNd1tvFA8AKITwiXJIjViyfuePGRERHjCsFONt55pdmMbQm4paxVd73xLmv/qv1aQFGpTBQyQ==","shasum":"65d8d0420708f8fdb5d7539ec65a1731db019cea","tarball":"https://registry.npmjs.org/@allegiant/mime/-/mime-0.2.3.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDFaSelUJfBrhV8o+NmnCoCKeM1W96kzoIgQO/Oby95CAIgKcq+V97dD6u9puLDraNP9GrQHIezwsB3Zu7T76yz2T8="}]},"maintainers":[{"name":"gabrielcsapo","email":"gabecsapo@gmail.com"},{"name":"echopoint","email":"echopoint@tutanota.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mime-0.2.3.tgz_1514569242242_0.3924554521217942"}}},"readme":"# mime\r\n\r\n> Simple mime type library. Can be used standalone or as a module for the allegiant app framework.\r\n>> There be 🐲 here! The API and functionality are being cemented, anything before a 1.0.0 release is subject to change.\r\n\r\n[![Npm Version](https://img.shields.io/npm/v/@allegiant/mime.svg)](https://www.npmjs.com/package/@allegiant/mime)\r\n[![Build Status](https://travis-ci.org/allegiant-js/mime.svg?branch=master)](https://travis-ci.org/allegiant-js/mime.svg?branch=master)\r\n[![Coverage Status](https://coveralls.io/repos/github/allegiant-js/mime/badge.svg?branch=master)](https://coveralls.io/github/allegiant-js/mime?branch=master)\r\n\r\n\r\n## Installation\r\n\r\n```\r\nnpm install @allegiant/mime --save\r\n```\r\n\r\n## Usage\r\n```js\r\nconst Mime = require('@allegiant/mime');\r\n\r\nvar mime = new Mime();\r\n// Alternatively; mime = new Mime('text/plain') to specify the expected default mime type returned on type queries\r\n\r\n// Default mime type for unknown type queries\r\nconsole.log(\"Default Mime Type: \", mime.type());\r\n\r\n// mime.type Accepts file extensions with or without a '.' \r\nconsole.log(\"Mime type for: .txt\", \"-\", mime.type(\".txt\"));\r\nconsole.log(\"Alternative extension: txt\", \"-\", mime.type(\"txt\"));\r\n\r\n// Can be used to generate content-type headers with the encoding specified\r\nconsole.log(\"Content-Type:\", mime.type(\".txt\", 'utf8'));\r\n\r\n// Find extensions for a known mime type\r\nconsole.log(\"Known extensions for Mime Type: 'text/html' =\", mime.ext(\"text/html\"));\r\n\r\n// Unknown mime types always return '' for an extension query\r\nconsole.log(\"Extensions for Unknown Mime Type: 'unknowntype' = '\" + mime.ext(\"unknowntype\") + \"'\");\r\n```\r\n\r\n### Copyright & License\r\n\r\nCopyright &copy; 2017 Allegiant. Distributed under the terms of the MIT License, see [LICENSE](https://github.com/allegiant-js/mime/blob/master/LICENSE)\r\n\r\nAvailble via [npm](https://www.npmjs.com/package/@allegiant/mime) or [github](https://github.com/allegiant-js/mime).\r\n","maintainers":[{"name":"gabrielcsapo","email":"gabecsapo@gmail.com"},{"name":"echopoint","email":"echopoint@tutanota.com"}],"time":{"modified":"2022-04-04T13:31:43.287Z","created":"2017-12-29T02:37:38.910Z","0.2.1":"2017-12-29T02:37:38.910Z","0.2.2":"2017-12-29T16:53:36.711Z","0.2.3":"2017-12-29T17:40:43.170Z"},"homepage":"https://github.com/allegiant-js/mime#readme","repository":{"type":"git","url":"git+https://github.com/allegiant-js/mime.git"},"contributors":[],"author":{"name":"echopoint","email":"echopoint@tutanota.com"},"bugs":{"url":"https://github.com/allegiant-js/mime/issues"},"license":"MIT","readmeFilename":"README.md"}