{"_id":"mimos","_rev":"305740","name":"mimos","description":"Mime database interface","dist-tags":{"latest":"4.0.2","v3-legacy":"3.1.1"},"maintainers":[{"name":"devinivy","email":"devin@bigroomstudios.com"},{"name":"marsup","email":"marsup@gmail.com"},{"name":"nargonath","email":"jonas.pauthier@gmail.com"},{"name":"nlf","email":""}],"time":{"modified":"2026-04-10T20:05:30.000Z","created":"2014-09-21T06:16:39.720Z","3.1.1":"2024-01-06T09:25:53.194Z","4.0.2":"2018-11-03T00:32:54.453Z","4.0.1":"2018-11-01T18:35:34.605Z","4.0.0":"2017-09-26T08:37:57.033Z","3.0.3":"2016-07-28T19:02:39.370Z","3.0.2":"2016-05-24T21:04:24.691Z","3.0.1":"2016-05-09T18:30:01.850Z","3.0.0":"2015-11-02T05:26:39.967Z","2.0.2":"2014-11-18T19:33:55.834Z","2.0.1":"2014-11-18T19:22:29.612Z","2.0.0":"2014-11-18T18:57:36.712Z","1.0.1":"2014-11-07T03:49:19.142Z","1.0.0":"2014-09-21T06:16:39.720Z"},"users":{},"repository":{"type":"git","url":"git://github.com/hapijs/mimos.git"},"versions":{"3.1.1":{"name":"mimos","description":"Mime database interface","version":"3.1.1","repository":{"type":"git","url":"git://github.com/hapijs/mimos.git"},"engines":{"node":">=6.0.0"},"main":"lib/index.js","keywords":["mime","database","content-type"],"dependencies":{"hoek":"4.x.x","mime-db":"1.x.x"},"devDependencies":{"code":"4.x.x","lab":"14.x.x"},"scripts":{"test":"lab -m 5000 -t 100 -L -a code -l"},"license":"SEE LICENSE IN LICENSE.md","_id":"mimos@3.1.1","readmeFilename":"README.md","gitHead":"b48d74387006c8f9ac8dc3dedc072ff2ae8b2443","bugs":{"url":"https://github.com/hapijs/mimos/issues"},"homepage":"https://github.com/hapijs/mimos#readme","_nodeVersion":"18.18.1","_npmVersion":"10.2.1","dist":{"shasum":"52b99c17c4eb9a951bbdb09d31c0e475fd7a5fff","size":1765,"noattachment":false,"key":"/mimos/-/mimos-3.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/mimos/download/mimos-3.1.1.tgz"},"_npmUser":{"name":"nargonath","email":"jonas.pauthier@gmail.com"},"directories":{},"maintainers":[{"name":"devinivy","email":"devin@bigroomstudios.com"},{"name":"marsup","email":"marsup@gmail.com"},{"name":"nargonath","email":"jonas.pauthier@gmail.com"},{"name":"nlf","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mimos_3.1.1_1704533153034_0.1743536461634947"},"_hasShrinkwrap":false,"deprecated":"This module has moved and is now available at @hapi/mimos. Please update your dependencies as this version is no longer maintained and may contain bugs and security issues.","_cnpmcore_publish_time":"2024-01-06T09:25:53.194Z","publish_time":1704533153194,"_source_registry_name":"default","_cnpm_publish_time":1704533153194},"4.0.2":{"name":"mimos","description":"Mime database interface","version":"4.0.2","repository":{"type":"git","url":"git://github.com/hapijs/mimos.git"},"main":"lib/index.js","keywords":["mime","database","content-type"],"dependencies":{"hoek":"6.x.x","mime-db":"1.x.x"},"devDependencies":{"code":"5.x.x","lab":"17.x.x"},"scripts":{"test":"lab -m 5000 -t 100 -L -a code"},"license":"BSD-3-Clause","gitHead":"963e0337cc9cc163fb60b55a421efa8dcfb6759c","bugs":{"url":"https://github.com/hapijs/mimos/issues"},"homepage":"https://github.com/hapijs/mimos#readme","_id":"mimos@4.0.2","_npmVersion":"6.4.1","_nodeVersion":"8.12.0","_npmUser":{"name":"hueniverse","email":"eran@hammer.io"},"dist":{"shasum":"f2762d7c60118ce51c2231afa090bc335d21d0f8","size":3340,"noattachment":false,"key":"/mimos/-/mimos-4.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/mimos/download/mimos-4.0.2.tgz"},"maintainers":[{"name":"devinivy","email":"devin@bigroomstudios.com"},{"name":"marsup","email":"marsup@gmail.com"},{"name":"nargonath","email":"jonas.pauthier@gmail.com"},{"name":"nlf","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mimos_4.0.2_1541205174320_0.47930330010069566"},"_hasShrinkwrap":false,"publish_time":1541205174453,"_cnpm_publish_time":1541205174453,"deprecated":"This module has moved and is now available at @hapi/mimos. Please update your dependencies as this version is no longer maintained an may contain bugs and security issues."},"4.0.1":{"name":"mimos","description":"Mime database interface","version":"4.0.1","repository":{"type":"git","url":"git://github.com/hapijs/mimos.git"},"main":"lib/index.js","keywords":["mime","database","content-type"],"engines":{"node":">=8.12.0"},"dependencies":{"hoek":"6.x.x","mime-db":"1.x.x"},"devDependencies":{"code":"5.x.x","lab":"17.x.x"},"scripts":{"test":"lab -m 5000 -t 100 -L -a code"},"license":"BSD-3-Clause","gitHead":"8969c67db30a3bb0fcb7fd7e37d23c1c7a3d9028","bugs":{"url":"https://github.com/hapijs/mimos/issues"},"homepage":"https://github.com/hapijs/mimos#readme","_id":"mimos@4.0.1","_npmVersion":"6.4.1","_nodeVersion":"8.12.0","_npmUser":{"name":"hueniverse","email":"eran@hammer.io"},"dist":{"shasum":"9dfd380acdb6864946a1c90433387e438969fc49","size":3356,"noattachment":false,"key":"/mimos/-/mimos-4.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/mimos/download/mimos-4.0.1.tgz"},"maintainers":[{"name":"devinivy","email":"devin@bigroomstudios.com"},{"name":"marsup","email":"marsup@gmail.com"},{"name":"nargonath","email":"jonas.pauthier@gmail.com"},{"name":"nlf","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mimos_4.0.1_1541097334469_0.7111095074655789"},"_hasShrinkwrap":false,"publish_time":1541097334605,"_cnpm_publish_time":1541097334605,"deprecated":"This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial)."},"4.0.0":{"name":"mimos","description":"Mime database interface","version":"4.0.0","repository":{"type":"git","url":"git://github.com/hapijs/mimos.git"},"main":"lib/index.js","keywords":["mime","database","content-type"],"engines":{"node":">=8.0.0"},"dependencies":{"hoek":"5.x.x","mime-db":"1.x.x"},"devDependencies":{"code":"5.x.x","lab":"14.x.x"},"scripts":{"test":"lab -m 5000 -t 100 -v -La code"},"license":"BSD-3-Clause","gitHead":"d1848bbebf06a649fd488211bbb8fd9c30dbe148","bugs":{"url":"https://github.com/hapijs/mimos/issues"},"homepage":"https://github.com/hapijs/mimos#readme","_id":"mimos@4.0.0","_npmVersion":"5.4.2","_nodeVersion":"8.4.0","_npmUser":{"name":"hueniverse","email":"eran@hammer.io"},"dist":{"shasum":"76e3d27128431cb6482fd15b20475719ad626a5a","size":3412,"noattachment":false,"key":"/mimos/-/mimos-4.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/mimos/download/mimos-4.0.0.tgz"},"maintainers":[{"name":"devinivy","email":"devin@bigroomstudios.com"},{"name":"marsup","email":"marsup@gmail.com"},{"name":"nargonath","email":"jonas.pauthier@gmail.com"},{"name":"nlf","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mimos-4.0.0.tgz_1506415076962_0.5693819434382021"},"directories":{},"publish_time":1506415077033,"_hasShrinkwrap":false,"_cnpm_publish_time":1506415077033,"deprecated":"This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial)."},"3.0.3":{"name":"mimos","description":"Mime database interface","version":"3.0.3","repository":{"type":"git","url":"git://github.com/hapijs/mimos.git"},"main":"lib/index.js","keywords":["mime","database","content-type"],"engines":{"node":">=4.0.0"},"dependencies":{"hoek":"4.x.x","mime-db":"1.x.x"},"devDependencies":{"code":"3.x.x","lab":"10.x.x"},"scripts":{"test":"lab -m 5000 -t 100 -v -La code"},"license":"BSD-3-Clause","gitHead":"32086ffd046555dc106f68066bb4c83265355b0a","bugs":{"url":"https://github.com/hapijs/mimos/issues"},"homepage":"https://github.com/hapijs/mimos#readme","_id":"mimos@3.0.3","_shasum":"b9109072ad378c2b72f6a0101c43ddfb2b36641f","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.3.0","_npmUser":{"name":"hueniverse","email":"eran@hammer.io"},"dist":{"shasum":"b9109072ad378c2b72f6a0101c43ddfb2b36641f","size":3477,"noattachment":false,"key":"/mimos/-/mimos-3.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/mimos/download/mimos-3.0.3.tgz"},"maintainers":[{"name":"devinivy","email":"devin@bigroomstudios.com"},{"name":"marsup","email":"marsup@gmail.com"},{"name":"nargonath","email":"jonas.pauthier@gmail.com"},{"name":"nlf","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/mimos-3.0.3.tgz_1469732559131_0.5359396848361939"},"directories":{},"publish_time":1469732559370,"_cnpm_publish_time":1469732559370,"_hasShrinkwrap":false,"deprecated":"This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial)."},"3.0.2":{"name":"mimos","description":"Mime database interface","version":"3.0.2","repository":{"type":"git","url":"git://github.com/hapijs/mimos.git"},"main":"lib/index.js","keywords":["mime","database","content-type"],"engines":{"node":">=4.0.0"},"dependencies":{"hoek":"4.x.x","mime-db":"1.x.x"},"devDependencies":{"code":"3.x.x","lab":"10.x.x"},"scripts":{"test":"lab -m 5000 -t 100 -v -La code"},"license":"BSD-3-Clause","gitHead":"1482d5869b3fe809fe3751fdc10aaba9b03cb0db","bugs":{"url":"https://github.com/hapijs/mimos/issues"},"homepage":"https://github.com/hapijs/mimos#readme","_id":"mimos@3.0.2","_shasum":"a9e42f7fdff22554b57e5af9dfb43793e44cb9c0","_from":".","_npmVersion":"3.8.6","_nodeVersion":"4.4.0","_npmUser":{"name":"arb","email":"arbretz@gmail.com"},"maintainers":[{"name":"devinivy","email":"devin@bigroomstudios.com"},{"name":"marsup","email":"marsup@gmail.com"},{"name":"nargonath","email":"jonas.pauthier@gmail.com"},{"name":"nlf","email":""}],"dist":{"shasum":"a9e42f7fdff22554b57e5af9dfb43793e44cb9c0","size":4947,"noattachment":false,"key":"/mimos/-/mimos-3.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/mimos/download/mimos-3.0.2.tgz"},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/mimos-3.0.2.tgz_1464123861988_0.2286827452480793"},"directories":{},"publish_time":1464123864691,"_cnpm_publish_time":1464123864691,"_hasShrinkwrap":false,"deprecated":"This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial)."},"3.0.1":{"name":"mimos","description":"Mime database interface","version":"3.0.1","repository":{"type":"git","url":"git://github.com/hapijs/mimos"},"main":"lib/index.js","keywords":["mime","database","content-type"],"engines":{"node":">=4.0.0"},"dependencies":{"hoek":"4.x.x","mime-db":"1.x.x"},"devDependencies":{"code":"2.x.x","lab":"10.x.x"},"scripts":{"test":"lab -m 5000 -t 100 -v -La code"},"license":"BSD-3-Clause","gitHead":"016f4df1f0f193500b22fc55b642c2c0f5ceb844","bugs":{"url":"https://github.com/hapijs/mimos/issues"},"homepage":"https://github.com/hapijs/mimos","_id":"mimos@3.0.1","_shasum":"a3f1ff09a10b565947343ac33723f52467d695f4","_from":".","_npmVersion":"2.14.20","_nodeVersion":"4.4.0","_npmUser":{"name":"arb","email":"arbretz@gmail.com"},"maintainers":[{"name":"devinivy","email":"devin@bigroomstudios.com"},{"name":"marsup","email":"marsup@gmail.com"},{"name":"nargonath","email":"jonas.pauthier@gmail.com"},{"name":"nlf","email":""}],"dist":{"shasum":"a3f1ff09a10b565947343ac33723f52467d695f4","size":4939,"noattachment":false,"key":"/mimos/-/mimos-3.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/mimos/download/mimos-3.0.1.tgz"},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/mimos-3.0.1.tgz_1462818600645_0.19939483888447285"},"directories":{},"publish_time":1462818601850,"_cnpm_publish_time":1462818601850,"_hasShrinkwrap":false,"deprecated":"This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial)."},"3.0.0":{"name":"mimos","description":"Mime database interface","version":"3.0.0","repository":{"type":"git","url":"git://github.com/hapijs/mimos.git"},"main":"lib/index.js","keywords":["mime","database","content-type"],"engines":{"node":">=4.0.0"},"dependencies":{"hoek":"3.x.x","mime-db":"1.x.x"},"devDependencies":{"code":"2.x.x","lab":"7.x.x"},"scripts":{"test":"lab -m 5000 -t 100 -v -La code","test-cov-html":"lab -m 5000 -r html -o coverage.html -La code"},"license":"BSD-3-Clause","gitHead":"3c5c79c75d7bf33f05eec225e8c4b47bb549db13","bugs":{"url":"https://github.com/hapijs/mimos/issues"},"homepage":"https://github.com/hapijs/mimos#readme","_id":"mimos@3.0.0","_shasum":"4b2806e125dbbdf71d9b2cd9f0b3b456c403c821","_from":".","_npmVersion":"3.3.9","_nodeVersion":"4.2.1","_npmUser":{"name":"hueniverse","email":"eran@hammer.io"},"dist":{"shasum":"4b2806e125dbbdf71d9b2cd9f0b3b456c403c821","size":4970,"noattachment":false,"key":"/mimos/-/mimos-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/mimos/download/mimos-3.0.0.tgz"},"maintainers":[{"name":"devinivy","email":"devin@bigroomstudios.com"},{"name":"marsup","email":"marsup@gmail.com"},{"name":"nargonath","email":"jonas.pauthier@gmail.com"},{"name":"nlf","email":""}],"directories":{},"publish_time":1446441999967,"_cnpm_publish_time":1446441999967,"_hasShrinkwrap":false,"deprecated":"This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial)."},"2.0.2":{"name":"mimos","description":"Mime database interface","version":"2.0.2","repository":{"type":"git","url":"git://github.com/hapijs/mimos"},"main":"index","keywords":["mime","database","content-type"],"engines":{"node":">=0.10.32"},"dependencies":{"hoek":"2.x.x","mime-db":"1.x.x"},"devDependencies":{"code":"1.x.x","lab":"4.x.x"},"scripts":{"test":"make test-cov"},"licenses":[{"type":"BSD","url":"http://github.com/hapijs/mimos/raw/master/LICENSE"}],"gitHead":"cf761cbb6f45231dd181a42f93d566a765652fe3","bugs":{"url":"https://github.com/hapijs/mimos/issues"},"homepage":"https://github.com/hapijs/mimos","_id":"mimos@2.0.2","_shasum":"c3241717e75b95992be787ac7dd6db1a9b539b1e","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"hueniverse","email":"eran@hueniverse.com"},"maintainers":[{"name":"devinivy","email":"devin@bigroomstudios.com"},{"name":"marsup","email":"marsup@gmail.com"},{"name":"nargonath","email":"jonas.pauthier@gmail.com"},{"name":"nlf","email":""}],"dist":{"shasum":"c3241717e75b95992be787ac7dd6db1a9b539b1e","size":4047,"noattachment":false,"key":"/mimos/-/mimos-2.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/mimos/download/mimos-2.0.2.tgz"},"directories":{},"publish_time":1416339235834,"_cnpm_publish_time":1416339235834,"_hasShrinkwrap":false,"deprecated":"This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial)."},"2.0.1":{"name":"mimos","description":"Mime database interface","version":"2.0.1","repository":{"type":"git","url":"git://github.com/hapijs/mimos"},"main":"index","keywords":["mime","database","content-type"],"engines":{"node":">=0.10.32"},"dependencies":{"hoek":"2.x.x","mime-db":"1.x.x"},"devDependencies":{"code":"1.x.x","lab":"4.x.x"},"scripts":{"test":"make test-cov"},"licenses":[{"type":"BSD","url":"http://github.com/hapijs/mimos/raw/master/LICENSE"}],"gitHead":"64b8aee27455c81b7762d2bd530bd6307b9d7248","bugs":{"url":"https://github.com/hapijs/mimos/issues"},"homepage":"https://github.com/hapijs/mimos","_id":"mimos@2.0.1","_shasum":"c6d60fe2d07e030cdcde19400d145050e6055a6e","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"hueniverse","email":"eran@hueniverse.com"},"maintainers":[{"name":"devinivy","email":"devin@bigroomstudios.com"},{"name":"marsup","email":"marsup@gmail.com"},{"name":"nargonath","email":"jonas.pauthier@gmail.com"},{"name":"nlf","email":""}],"dist":{"shasum":"c6d60fe2d07e030cdcde19400d145050e6055a6e","size":4042,"noattachment":false,"key":"/mimos/-/mimos-2.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/mimos/download/mimos-2.0.1.tgz"},"directories":{},"publish_time":1416338549612,"_cnpm_publish_time":1416338549612,"_hasShrinkwrap":false,"deprecated":"This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial)."},"2.0.0":{"name":"mimos","description":"Mime database interface","version":"2.0.0","repository":{"type":"git","url":"git://github.com/hapijs/mimos"},"main":"index","keywords":["mime","database","content-type"],"engines":{"node":">=0.10.32"},"dependencies":{"hoek":"2.x.x","mime-db":"1.x.x"},"devDependencies":{"code":"1.x.x","lab":"4.x.x"},"scripts":{"test":"make test-cov"},"licenses":[{"type":"BSD","url":"http://github.com/hapijs/mimos/raw/master/LICENSE"}],"gitHead":"e4058d31a268389697e924a9e508189eb5bace92","bugs":{"url":"https://github.com/hapijs/mimos/issues"},"homepage":"https://github.com/hapijs/mimos","_id":"mimos@2.0.0","_shasum":"c2471edc91ab5b9cae79f86940cc9b7de5e8fc8e","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"hueniverse","email":"eran@hueniverse.com"},"maintainers":[{"name":"devinivy","email":"devin@bigroomstudios.com"},{"name":"marsup","email":"marsup@gmail.com"},{"name":"nargonath","email":"jonas.pauthier@gmail.com"},{"name":"nlf","email":""}],"dist":{"shasum":"c2471edc91ab5b9cae79f86940cc9b7de5e8fc8e","size":3930,"noattachment":false,"key":"/mimos/-/mimos-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/mimos/download/mimos-2.0.0.tgz"},"directories":{},"publish_time":1416337056712,"_cnpm_publish_time":1416337056712,"_hasShrinkwrap":false,"deprecated":"This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial)."},"1.0.1":{"name":"mimos","description":"Mime database interface","version":"1.0.1","repository":{"type":"git","url":"git://github.com/hapijs/mimos"},"main":"index","keywords":["mime","database","content-type"],"engines":{"node":">=0.10.32"},"dependencies":{"hoek":"2.x.x","mime-db":"1.x.x"},"devDependencies":{"code":"1.x.x","lab":"4.x.x"},"scripts":{"test":"make test-cov"},"licenses":[{"type":"BSD","url":"http://github.com/hapijs/mimos/raw/master/LICENSE"}],"gitHead":"3905d20c3e68b921fa981fbbab1552242c312682","bugs":{"url":"https://github.com/hapijs/mimos/issues"},"homepage":"https://github.com/hapijs/mimos","_id":"mimos@1.0.1","_shasum":"a6e2c07d66588ace7e8c2b97329eb57261f57bfa","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"hueniverse","email":"eran@hueniverse.com"},"maintainers":[{"name":"devinivy","email":"devin@bigroomstudios.com"},{"name":"marsup","email":"marsup@gmail.com"},{"name":"nargonath","email":"jonas.pauthier@gmail.com"},{"name":"nlf","email":""}],"dist":{"shasum":"a6e2c07d66588ace7e8c2b97329eb57261f57bfa","size":3271,"noattachment":false,"key":"/mimos/-/mimos-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/mimos/download/mimos-1.0.1.tgz"},"directories":{},"publish_time":1415332159142,"_cnpm_publish_time":1415332159142,"_hasShrinkwrap":false,"deprecated":"This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial)."},"1.0.0":{"name":"mimos","description":"Mime database interface","version":"1.0.0","repository":{"type":"git","url":"git://github.com/hapijs/mimos"},"main":"index","keywords":["mime","database","content-type"],"engines":{"node":">=0.10.32"},"dependencies":{"hoek":"2.x.x","mime-db":"1.x.x"},"devDependencies":{"lab":"4.x.x"},"scripts":{"test":"make test-cov"},"licenses":[{"type":"BSD","url":"http://github.com/hapijs/mimos/raw/master/LICENSE"}],"gitHead":"40bf22d1f1aa601063bc676a5805eebd87525131","bugs":{"url":"https://github.com/hapijs/mimos/issues"},"homepage":"https://github.com/hapijs/mimos","_id":"mimos@1.0.0","_shasum":"6cfda870ee86cf837e985351b40e971309ebedbe","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"hueniverse","email":"eran@hueniverse.com"},"maintainers":[{"name":"devinivy","email":"devin@bigroomstudios.com"},{"name":"marsup","email":"marsup@gmail.com"},{"name":"nargonath","email":"jonas.pauthier@gmail.com"},{"name":"nlf","email":""}],"dist":{"shasum":"6cfda870ee86cf837e985351b40e971309ebedbe","size":3207,"noattachment":false,"key":"/mimos/-/mimos-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/mimos/download/mimos-1.0.0.tgz"},"directories":{},"publish_time":1411280199720,"_cnpm_publish_time":1411280199720,"_hasShrinkwrap":false,"deprecated":"This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial)."}},"readme":"#mimos\n\nMime database interface.\n\n[![Build Status](https://secure.travis-ci.org/hapijs/mimos.svg)](http://travis-ci.org/hapijs/mimos)\n[![Current Version](https://img.shields.io/npm/v/mimos.svg)](https://www.npmjs.com/package/mimos)\n\nLead Maintainer - [Adam Bretz](https://github.com/arb)\n\nMimos is a convenience class for retrieving mime information objects.\n\n## Usage\n\n### `new Mimos([options])`\n\nCreates a new Mimos object where:\n\n- `[options]` - an option object the following keys\n    - `[override]` - an object hash that is merged into the built in mime information specified [here](https://github.com/jshttp/mime-db). Each key value pair represents a single mime object. Each override value should follow this schema:\n        - `key` - the key is the lower-cased correct mime-type. (Ex. \"application/javascript\").\n        - `value` - the value should an object following the specifications outlined [here](https://github.com/jshttp/mime-db#data-structure). Additional values include:\n          - `type` - specify the `type` value of result objects, defaults to `key`. See the example below for more clarification.\n          - `predicate` - method with signature `function(mime)` when this mime type is found in the database, this function will run. This allows you make customizations to `mime` based on developer criteria.\n\n### `mimos.path(path)`\n\nReturns mime object where:\n\n- `path` path to file including the file extension. Uses the `extension` values of the mime objects for lookup.\n\n```js\nconst mimos = new Mimos();\nconst mime = mimos.path('/static/public/app.js');\n// mime\n/*\n{\n  source: 'iana',\n  charset: 'UTF-8',\n  compressible: true,\n  extensions: [ 'js' ],\n  type: 'application/javascript'\n}\n*/\n```\n\n### `mimos.type(type)`\n\nReturns mime object where:\n\n- `type` the content-type to find mime information about. Uses the `type` values of the mime objects for lookup.\n\n```js\nconst mimos = new Mimos();\nconst mime = mimos.type('text/plain');\n// mime\n/*\n{\n  source: 'iana',\n  compressible: true,\n  extensions: ['txt', 'text', 'conf', 'def', 'list', 'log', 'in', 'ini'],\n  type: 'text/plain'\n}\n*/\n```\n\n### Override Example\n\nIn certain situations, it can be helpful to override the built in mime type information. The optional argument to the Mimos constructor is used to override and add mime information. Below is an example to help understand how this works.\n\n```js\n\nconst options = {\n    override: {\n        'node/module': {\n            source: 'iana',\n            compressible: true,\n            extensions: ['node', 'module', 'npm'],\n            type: 'node/module'\n        },\n        'application/javascript': {\n            source: 'iana',\n            charset: 'UTF-8',\n            compressible: true,\n            extensions: ['js', 'javascript'],\n            type: 'text/javascript'\n        },\n        'text/html': {\n            predicate: function(mime) {\n                if (someCondition) {\n                    mime.foo = 'test';\n                }\n                else {\n                    mime.foo = 'bar';\n                }\n                return mime;\n            }\n        }\n    }\n}\n\nconst mimos = new Mimos(options);\nconsole.dir(mimos.path('./node_modules/mimos.module'));\n/*\n{\n  source: 'iana',\n  compressible: true,\n  extensions: ['node', 'module', 'npm'],\n  type: 'node/module'\n}\n*/\nconsole.dir(mimos.type('application/javascript'));\n/*\nNote: even though we asked for type 'application/javascript', the type value is 'text/javascript' because of the override. Always use the proper content-type for retrieval.\n{\n  source: 'iana',\n  charset: 'UTF-8',\n  compressible: true,\n  extensions: ['js', 'javascript'],\n  type: 'text/javascript'\n}\n*/\nconsole.dir(mimos.type('text/html'));\n/*\nsomeCondition is true:\n{\n  source: 'iana',\n  compressible: true,\n  extensions: ['html','htm'],\n  type: 'test/html',\n  foo: 'test'\n}\n\nsomeCondition is false:\n{\n  source: 'iana',\n  compressible: true,\n  extensions: ['html','htm'],\n  type: 'test/html',\n  foo: 'bar'\n}\n*/\n```\n","_attachments":{},"homepage":"https://github.com/hapijs/mimos#readme","bugs":{"url":"https://github.com/hapijs/mimos/issues"},"license":"BSD-3-Clause"}