{"_id":"whatwg-mimetype","_rev":"1214586","name":"whatwg-mimetype","description":"Parses, serializes, and manipulates MIME types, according to the WHATWG MIME Sniffing Standard","dist-tags":{"latest":"5.0.0"},"maintainers":[{"name":"timothygu","email":"timothygu99@gmail.com"},{"name":"domenic","email":"d@domenic.me"},{"name":"sebmaster","email":"sebmaster16@gmail.com"},{"name":"zirro","email":"code@zirro.se"},{"name":"tmpvar","email":"tmpvar@gmail.com"},{"name":"joris-van-der-wel","email":"joris@jorisvanderwel.com"}],"time":{"modified":"2026-04-19T19:54:39.000Z","created":"2017-12-10T06:29:12.340Z","5.0.0":"2026-01-20T03:04:38.058Z","4.0.0":"2023-11-11T07:43:44.007Z","3.0.0":"2021-09-18T19:28:10.916Z","2.3.0":"2018-11-20T23:56:53.400Z","2.2.0":"2018-09-14T18:39:05.267Z","2.1.0":"2018-02-04T20:02:32.142Z","2.0.1":"2017-12-10T16:58:32.866Z","2.0.0":"2017-12-10T06:29:12.340Z"},"users":{"aurimas4":true},"author":{"name":"Domenic Denicola","email":"d@domenic.me","url":"https://domenic.me/"},"repository":{"type":"git","url":"git+https://github.com/jsdom/whatwg-mimetype.git"},"versions":{"5.0.0":{"name":"whatwg-mimetype","description":"Parses, serializes, and manipulates MIME types, according to the WHATWG MIME Sniffing Standard","keywords":["content-type","mime type","mimesniff","http","whatwg"],"version":"5.0.0","author":{"name":"Domenic Denicola","email":"d@domenic.me","url":"https://domenic.me/"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/jsdom/whatwg-mimetype.git"},"main":"lib/index.js","scripts":{"test":"node --test","coverage":"c8 node --test --experimental-test-coverage","lint":"eslint","pretest":"node scripts/get-latest-platform-tests.mjs"},"devDependencies":{"@domenic/eslint-config":"^4.0.1","@exodus/bytes":"^1.9.0","c8":"^10.1.3","eslint":"^9.39.2","printable-string":"^0.3.0"},"engines":{"node":">=20"},"c8":{"reporter":["html"],"exclude":["scripts/","test/"]},"gitHead":"7614048e8bc775796bdaf623cdfe28c4b97fdab9","_id":"whatwg-mimetype@5.0.0","bugs":{"url":"https://github.com/jsdom/whatwg-mimetype/issues"},"homepage":"https://github.com/jsdom/whatwg-mimetype#readme","_nodeVersion":"24.12.0","_npmVersion":"11.6.2","dist":{"integrity":"sha512-sXcNcHOC51uPGF0P/D4NVtrkjSU2fNsm9iog4ZvZJsL3rjoDAzXZhkm2MWt1y+PUdggKAYVoMAIYcs78wJ51Cw==","shasum":"d8232895dbd527ceaee74efd4162008fb8a8cf48","tarball":"http://registry-npm.ywwl.com/whatwg-mimetype/download/whatwg-mimetype-5.0.0.tgz","fileCount":10,"unpackedSize":42618,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/whatwg-mimetype@5.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIAUGnDRNFO0Pqn5jNNphPi6+Z+GDnnIUfyuIno9tK7eaAiB1VdDnh4QlnCLW9DjSv1/r+MXAGAybmjB/jz9Ut14R6Q=="}],"size":10895,"noattachment":false,"key":"/whatwg-mimetype/-/whatwg-mimetype-5.0.0.tgz"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:99a8fc3d-333c-4030-98c9-309f1f03dc38"}},"directories":{},"maintainers":[{"name":"timothygu","email":"timothygu99@gmail.com"},{"name":"domenic","email":"d@domenic.me"},{"name":"sebmaster","email":"sebmaster16@gmail.com"},{"name":"zirro","email":"code@zirro.se"},{"name":"tmpvar","email":"tmpvar@gmail.com"},{"name":"joris-van-der-wel","email":"joris@jorisvanderwel.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/whatwg-mimetype_5.0.0_1768878277865_0.6519475557968633"},"_hasShrinkwrap":false,"publish_time":1768878278058,"_cnpm_publish_time":1768878278058},"4.0.0":{"name":"whatwg-mimetype","description":"Parses, serializes, and manipulates MIME types, according to the WHATWG MIME Sniffing Standard","keywords":["content-type","mime type","mimesniff","http","whatwg"],"version":"4.0.0","author":{"name":"Domenic Denicola","email":"d@domenic.me","url":"https://domenic.me/"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/jsdom/whatwg-mimetype.git"},"main":"lib/mime-type.js","scripts":{"test":"node --test","coverage":"c8 node --test --experimental-test-coverage","lint":"eslint .","pretest":"node scripts/get-latest-platform-tests.js"},"devDependencies":{"@domenic/eslint-config":"^3.0.0","c8":"^8.0.1","eslint":"^8.53.0","printable-string":"^0.3.0","whatwg-encoding":"^3.0.0"},"engines":{"node":">=18"},"c8":{"reporter":["text","html"],"exclude":["scripts/","test/"]},"_id":"whatwg-mimetype@4.0.0","gitHead":"9e114f4ffb251026d33328c6666ff5af1dca9d69","bugs":{"url":"https://github.com/jsdom/whatwg-mimetype/issues"},"homepage":"https://github.com/jsdom/whatwg-mimetype#readme","_nodeVersion":"21.1.0","_npmVersion":"10.2.0","dist":{"integrity":"sha512-QaKxh0eNIi2mE9p2vEdzfagOKHCcj1pJ56EEHGQOVxp8r9/iszLUUV7v89x9O1p/T+NlTM5W7jW6+cz4Fq1YVg==","shasum":"bc1bf94a985dc50388d54a9258ac405c3ca2fc0a","tarball":"http://registry-npm.ywwl.com/whatwg-mimetype/download/whatwg-mimetype-4.0.0.tgz","fileCount":8,"unpackedSize":16721,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCXButTfX0quO+uswt3EB9umtoaUe1Km0fhjd9TS51yuwIgH09wxxTclzd3Mr2et7IIj0mJ71hseUYYzMsDINW+b/M="}],"size":5268,"noattachment":false,"key":"/whatwg-mimetype/-/whatwg-mimetype-4.0.0.tgz"},"_npmUser":{"name":"domenic","email":"d@domenic.me"},"directories":{},"maintainers":[{"name":"timothygu","email":"timothygu99@gmail.com"},{"name":"domenic","email":"d@domenic.me"},{"name":"sebmaster","email":"sebmaster16@gmail.com"},{"name":"zirro","email":"code@zirro.se"},{"name":"tmpvar","email":"tmpvar@gmail.com"},{"name":"joris-van-der-wel","email":"joris@jorisvanderwel.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/whatwg-mimetype_4.0.0_1699688623832_0.055270078475392115"},"_hasShrinkwrap":false,"publish_time":1699688624007,"_cnpm_publish_time":1699688624007},"3.0.0":{"name":"whatwg-mimetype","description":"Parses, serializes, and manipulates MIME types, according to the WHATWG MIME Sniffing Standard","keywords":["content-type","mime type","mimesniff","http","whatwg"],"version":"3.0.0","author":{"name":"Domenic Denicola","email":"d@domenic.me","url":"https://domenic.me/"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/jsdom/whatwg-mimetype.git"},"main":"lib/mime-type.js","scripts":{"test":"jest","coverage":"jest --coverage","lint":"eslint .","pretest":"node scripts/get-latest-platform-tests.js"},"devDependencies":{"@domenic/eslint-config":"^1.4.0","eslint":"^7.32.0","jest":"^27.2.0","minipass-fetch":"^1.4.1","printable-string":"^0.3.0","whatwg-encoding":"^2.0.0"},"engines":{"node":">=12"},"jest":{"coverageDirectory":"coverage","coverageReporters":["lcov","text-summary"],"testEnvironment":"node","testMatch":["<rootDir>/test/**/*.js"]},"gitHead":"e68afa4a11909575daf67b41061b251c61c8135d","bugs":{"url":"https://github.com/jsdom/whatwg-mimetype/issues"},"homepage":"https://github.com/jsdom/whatwg-mimetype#readme","_id":"whatwg-mimetype@3.0.0","_nodeVersion":"16.4.1","_npmVersion":"7.18.1","dist":{"integrity":"sha512-nt+N2dzIutVRxARx1nghPKGv1xHikU7HKdfafKkLNLindmPU/ch3U31NOCGGA/dmPcmb1VlofO0vnKAcsm0o/Q==","shasum":"5fa1a7623867ff1af6ca3dc72ad6b8a4208beba7","tarball":"http://registry-npm.ywwl.com/whatwg-mimetype/download/whatwg-mimetype-3.0.0.tgz","fileCount":8,"unpackedSize":16809,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh3BQDCRA9TVsSAnZWagAAcxUP/jD9zCBjG9J5Z+2W+dtf\nEfFkZjqPOBVe0ANHwdyL9OHE0Lg6MgfVKYhbTTBpNCu2109VPw00j1Vad3ZY\nmempn9qMhPLG9t3uH340L/ZP0hA+P6woNylTpEaZV5XRzFZ8mFgShhKI8W/P\nISj1y8YknGUTkFZAPutLEnZi0RiKPNSt9Yl1qB3+NCtQswA/7DO3tPLhlBJ3\nhwKTMyLYpZ4N6lDTj1XoInXvncWqCkoZsfS8rygmxNDRKaGsXsKIsHc/qsDr\nXiSQRAS49DSqgbsXwy/F8LtOxTSh/R+fRzhHSYXdXj38j3MTCIdyR3C1xO8R\nxxPeWns5SY0oBidO4rrvKoibarpYIY+907yESrWZYGCL/vCp384nJcFk+Vf0\nZtEZv1puhpjM2AfyllqkydWk+vW9Z/ZnozpJK4M6SsEk2Ng25TZ5lmSAE9Jz\n4gPAJbK9sjj12FVYI10N3mMXQtQL6ET0V9Guukq95OK6B4d/V0xsc1pkntJm\nuFJUHHRd9U0q1WW57QcfhNfEpjNqXL1GqTdnbVcqvR7HygRMTnamPbDTW4fV\npwqKJEsBICSs0PBP9gPgJfh9OYk/IMJ/UmnbiAGIW51qiSl+aud0YpUMX8Hj\nER2kyKctZKMwVZeasUG/h9qADEpyRlrhbsLOSxELw0uiYEYrtAxZJgsOvpmp\nrCzw\r\n=anWe\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDmpztDcV5tnuYit7gm8swkVOqualQdIGJqzjdA26sY8gIgV9+uuI62ttWx9XWtuF9kDhmmpUyWjSaFkTOQobNOPN0="}],"size":5309,"noattachment":false,"key":"/whatwg-mimetype/-/whatwg-mimetype-3.0.0.tgz"},"_npmUser":{"name":"domenic","email":"d@domenic.me"},"directories":{},"maintainers":[{"name":"timothygu","email":"timothygu99@gmail.com"},{"name":"domenic","email":"d@domenic.me"},{"name":"sebmaster","email":"sebmaster16@gmail.com"},{"name":"zirro","email":"code@zirro.se"},{"name":"tmpvar","email":"tmpvar@gmail.com"},{"name":"joris-van-der-wel","email":"joris@jorisvanderwel.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/whatwg-mimetype_3.0.0_1631993290786_0.9050839752369897"},"_hasShrinkwrap":false,"publish_time":1631993290916,"_cnpm_publish_time":1631993290916},"2.3.0":{"name":"whatwg-mimetype","description":"Parses, serializes, and manipulates MIME types, according to the WHATWG MIME Sniffing Standard","keywords":["content-type","mime type","mimesniff","http","whatwg"],"version":"2.3.0","author":{"name":"Domenic Denicola","email":"d@domenic.me","url":"https://domenic.me/"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/jsdom/whatwg-mimetype.git"},"main":"lib/mime-type.js","scripts":{"test":"jest","coverage":"jest --coverage","lint":"eslint .","pretest":"node scripts/get-latest-platform-tests.js"},"devDependencies":{"eslint":"^5.9.0","jest":"^23.6.0","printable-string":"^0.3.0","request":"^2.88.0","whatwg-encoding":"^1.0.5"},"jest":{"coverageDirectory":"coverage","coverageReporters":["lcov","text-summary"],"testEnvironment":"node","testMatch":["<rootDir>/test/**/*.js"]},"gitHead":"7eadb26d8e02f9d95bc2f6e272df7eb653d7a903","bugs":{"url":"https://github.com/jsdom/whatwg-mimetype/issues"},"homepage":"https://github.com/jsdom/whatwg-mimetype#readme","_id":"whatwg-mimetype@2.3.0","_npmVersion":"6.2.0","_nodeVersion":"10.8.0","_npmUser":{"name":"domenic","email":"d@domenic.me"},"dist":{"integrity":"sha512-M4yMwr6mAnQz76TbJm914+gPpB/nCwvZbJU28cUD6dR004SAxDLOOSUaB1JDRqLtaOV/vi0IC5lEAGFgrjGv/g==","shasum":"3d4b1e0312d2079879f826aff18dbeeca5960fbf","tarball":"http://registry-npm.ywwl.com/whatwg-mimetype/download/whatwg-mimetype-2.3.0.tgz","fileCount":7,"unpackedSize":16182,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb9J9FCRA9TVsSAnZWagAAiREP/1kUJJBOp0xUEgU8RJV/\nqj3qs2mEreN4NBrKGuaQlssQPlrMa83VqMbv7Ai25wLkXVmEN+4AyOSTn5QG\naybziFTZxV+F22YjAJc3sxEmFK9y7iaZKEqyuts7W/aXKhGokMLWOqCk7qNB\nH4OQN4IXk6e8gKd5m9Fk+zUvYS8YVHRSHDMzkPnfujxqGjoTte7XAM8x68t/\nqgFc/0Svy3lfufg3gkT/QMI4XKWhXH+tzumCqYDQAQOLS2oETJWVCK26TFqs\nd+D0RpY+bXKVe4GkMagw0KSpWkwXLxf0RIaMdkqSr9hLcdYTJgfMY3s33bpi\nGBxMBzlAZtLXlFETFLKW06TRAoZ3l5Crp9AHLlLsyKil/SJAYNkSqbSpsxIy\neowxBmmgdLIOs5SOFj59zggBYO6QK+boai8eqEZW5SuRWa/MdzrHbbCv5OC/\nLjtK3LTsKYwQRXlyILqnhXiUhD4ztOsKhQ+8yTrbCraPRvoG+MzyslvVCl6I\nxmP5GTIXHD3F5gXsfFrlSZ6Yo15QrtL8liB9BSIFJ0pDKTHE8Xs/ce/feAkW\n4mbEdq8N8/WLQcK02zHqSuVoYEU6g2XAfDh1cXq6/aPTUmuc1PrH3Vpy+SQk\njsZLhbwdkuo/3GCkbBd3Erqt1mY61tf34vPhjSQeuEvpis6m70fqnmRDdpbE\n/leO\r\n=dQ5P\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIF7rchyBBNOfRFKLXEU4l1iqrhSzH+FqMNMXJA9maUTDAiAoITBa7XtFTxDtIrXVQgmPeg1Up3A6ib9ZNTL0Qita0Q=="}],"size":5135,"noattachment":false,"key":"/whatwg-mimetype/-/whatwg-mimetype-2.3.0.tgz"},"maintainers":[{"email":"d@domenic.me","name":"domenic"},{"email":"joris@jorisvanderwel.com","name":"joris-van-der-wel"},{"email":"sebmaster16@gmail.com","name":"sebmaster"},{"email":"timothygu99@gmail.com","name":"timothygu"},{"email":"tmpvar@gmail.com","name":"tmpvar"},{"email":"code@zirro.se","name":"zirro"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/whatwg-mimetype_2.3.0_1542758213289_0.1704504739378121"},"_hasShrinkwrap":false,"publish_time":1542758213400,"_cnpm_publish_time":1542758213400},"2.2.0":{"name":"whatwg-mimetype","description":"Parses, serializes, and manipulates MIME types, according to the WHATWG MIME Sniffing Standard","keywords":["content-type","mime type","mimesniff","http","whatwg"],"version":"2.2.0","author":{"name":"Domenic Denicola","email":"d@domenic.me","url":"https://domenic.me/"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/jsdom/whatwg-mimetype.git"},"main":"lib/mime-type.js","scripts":{"test":"jest","coverage":"jest --coverage","lint":"eslint .","pretest":"node scripts/get-latest-platform-tests.js"},"devDependencies":{"eslint":"^5.5.0","jest":"^23.6.0","printable-string":"^0.3.0","request":"^2.88.0","whatwg-encoding":"^1.0.4"},"jest":{"coverageDirectory":"coverage","coverageReporters":["lcov","text-summary"],"testEnvironment":"node","testMatch":["<rootDir>/test/**/*.js"]},"gitHead":"426bf68a22d51f9647d57c05f038e310c1444e98","bugs":{"url":"https://github.com/jsdom/whatwg-mimetype/issues"},"homepage":"https://github.com/jsdom/whatwg-mimetype#readme","_id":"whatwg-mimetype@2.2.0","_npmVersion":"6.2.0","_nodeVersion":"10.8.0","_npmUser":{"name":"domenic","email":"d@domenic.me"},"dist":{"integrity":"sha512-5YSO1nMd5D1hY3WzAQV3PzZL83W3YeyR1yW9PcH26Weh1t+Vzh9B6XkDh7aXm83HBZ4nSMvkjvN2H2ySWIvBgw==","shasum":"a3d58ef10b76009b042d03e25591ece89b88d171","tarball":"http://registry-npm.ywwl.com/whatwg-mimetype/download/whatwg-mimetype-2.2.0.tgz","fileCount":7,"unpackedSize":16215,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbnABJCRA9TVsSAnZWagAARJUQAJQdcSBrMpO38O2R+f4V\nCYxD/Qc2GiuGhb7fX2iUMtVPSL3ygrjT789kEDhs3UomWYQ0pG+///UkOEpp\n9sj37Af0a90ZA2g6RBFujdgwuhUWNuPSCUVCWOp7jbY5Gi1TH1VBP1a3H+vv\nHNgRpxicxRTWYxKayOKc70jzpjBx3y6Gd4rofk08dZHMyG5eBDSjAUwZnIIX\niSE+QgYaba8jRZczxTQiV0eDJnBnnQnVKkKT1+OYO5Dpgs3k61LTCjSc/xgp\nlyFoVo+AGkper0/EYfDYVl4A54labwE3EADLnRR5Gt5Z0xRu4VgAFiQv3S8o\n4+msTvz4J0L9hVJZxcEUvEB4xJQEORo0nVz7hCSgcYfUOAfAzkojkWrthtt2\nNzVtCF1CG436euKRXDehZLZ/KudKbSC0zYoqkzGIOKZAVH71LfV+4BsROKxE\n+seQgNNTxO3QSvOcvxUi/uSu5mBlSRi3WHRTuuJpJlZg6SnYJARRZVxnRO8m\nmssqk70n5cHHr0P7Jd1fLdsxU9YyocQzI12zbU8MyZ9ineX3tipXxntlPTzY\ngMKlDVNuuNde2f3KwQvc0gLg078HnfQtET5P9By4peVrFcFX+QcJrKr5fVCr\naWVBAy+n25ro4gNmHJBhtObk3JqEERG/bT7Fm3iTVgwL3Xb8VFRYS2K90m7l\nvuBa\r\n=lrFr\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDUa/lgKEl43PYAPMG3jQ7q6O+yADRX9WVhNAwvujSDDQIhAJkr95KX6wFCyB7W3vN65eLQWI4Ij6z8UZD6y5wbllDb"}],"size":5141,"noattachment":false,"key":"/whatwg-mimetype/-/whatwg-mimetype-2.2.0.tgz"},"maintainers":[{"email":"d@domenic.me","name":"domenic"},{"email":"joris@jorisvanderwel.com","name":"joris-van-der-wel"},{"email":"sebmaster16@gmail.com","name":"sebmaster"},{"email":"timothygu99@gmail.com","name":"timothygu"},{"email":"tmpvar@gmail.com","name":"tmpvar"},{"email":"code@zirro.se","name":"zirro"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/whatwg-mimetype_2.2.0_1536950345140_0.7309741373150824"},"_hasShrinkwrap":false,"publish_time":1536950345267,"_cnpm_publish_time":1536950345267},"2.1.0":{"name":"whatwg-mimetype","description":"Parses, serializes, and manipulates MIME types, according to the WHATWG MIME Sniffing Standard","keywords":["content-type","mime type","mimesniff","http","whatwg"],"version":"2.1.0","author":{"name":"Domenic Denicola","email":"d@domenic.me","url":"https://domenic.me/"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/jsdom/whatwg-mimetype.git"},"main":"lib/mime-type.js","files":["lib/"],"scripts":{"test":"jest","coverage":"jest --coverage","lint":"eslint .","pretest":"node scripts/get-latest-platform-tests.js"},"devDependencies":{"eslint":"^4.12.1","jest":"^21.2.1","printable-string":"^0.3.0","request":"^2.83.0","whatwg-encoding":"^1.0.3"},"jest":{"coverageDirectory":"coverage","coverageReporters":["lcov","text-summary"],"testEnvironment":"node","testMatch":["<rootDir>/test/**/*.js"]},"gitHead":"220d674c39e75ac5a3afacc6003bfb5e34c88485","bugs":{"url":"https://github.com/jsdom/whatwg-mimetype/issues"},"homepage":"https://github.com/jsdom/whatwg-mimetype#readme","_id":"whatwg-mimetype@2.1.0","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"domenic","email":"d@domenic.me"},"dist":{"integrity":"sha512-FKxhYLytBQiUKjkYteN71fAUA3g6KpNXoho1isLiLSB3N1G4F35Q5vUxWfKFhBwi5IWF27VE6WxhrnnC+m0Mew==","shasum":"f0f21d76cbba72362eb609dbed2a30cd17fcc7d4","tarball":"http://registry-npm.ywwl.com/whatwg-mimetype/download/whatwg-mimetype-2.1.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD7HEvIY143DKNmgCSWt3VaCaDbu4kBY421zcqiiBIYBgIhAP1C050A+wn0u7NzWaZbFq2Hk1Wlz91C5Fz7kIj0cCLV"}],"size":5137,"noattachment":false,"key":"/whatwg-mimetype/-/whatwg-mimetype-2.1.0.tgz"},"maintainers":[{"name":"domenic","email":"d@domenic.me"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/whatwg-mimetype-2.1.0.tgz_1517774551100_0.22127527836710215"},"directories":{},"publish_time":1517774552142,"_cnpm_publish_time":1517774552142},"2.0.1":{"name":"whatwg-mimetype","description":"Parses, serializes, and manipulates MIME types, according to the WHATWG MIME Sniffing Standard","keywords":["content-type","mime type","mimesniff","http","whatwg"],"version":"2.0.1","author":{"name":"Domenic Denicola","email":"d@domenic.me","url":"https://domenic.me/"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/jsdom/whatwg-mimetype.git"},"main":"lib/mime-type.js","files":["lib/"],"scripts":{"test":"jest","coverage":"jest --coverage","lint":"eslint .","pretest":"node scripts/get-latest-platform-tests.js"},"devDependencies":{"eslint":"^4.12.1","jest":"^21.2.1","printable-string":"^0.3.0","request":"^2.83.0","whatwg-encoding":"^1.0.3"},"jest":{"coverageDirectory":"coverage","coverageReporters":["lcov","text-summary"],"testEnvironment":"node","testMatch":["<rootDir>/test/**/*.js"]},"gitHead":"341d94b03efd3ba17bf6c0d9043872c05e405ff4","bugs":{"url":"https://github.com/jsdom/whatwg-mimetype/issues"},"homepage":"https://github.com/jsdom/whatwg-mimetype#readme","_id":"whatwg-mimetype@2.0.1","_npmVersion":"5.4.2","_nodeVersion":"8.6.0","_npmUser":{"name":"domenic","email":"d@domenic.me"},"dist":{"integrity":"sha512-Y/NmdK9OCq2XSLzh9dHY4FOnvONFom9nZu3mCS4X4JgG2Hdp8ZFFDb8nN4jqZBvi2cg0+svIWg91Hxo/v5Wrog==","shasum":"781d925257d973e720ea0001779b2ea86a03caae","tarball":"http://registry-npm.ywwl.com/whatwg-mimetype/download/whatwg-mimetype-2.0.1.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDF+9WMn7wGLgW+/wq63L7L+J3U3qJNZE27IdwBatBP6AiEAwDKlcP9XrJtyhwwDfqeMccazpYc+GiSIV7fXigXBzS8="}],"size":4674,"noattachment":false,"key":"/whatwg-mimetype/-/whatwg-mimetype-2.0.1.tgz"},"maintainers":[{"name":"domenic","email":"d@domenic.me"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/whatwg-mimetype-2.0.1.tgz_1512925111943_0.3966343451756984"},"directories":{},"publish_time":1512925112866,"_cnpm_publish_time":1512925112866},"2.0.0":{"name":"whatwg-mimetype","description":"Parses, serializes, and manipulates MIME types, according to the WHATWG MIME Sniffing Standard","keywords":["content-type","mime type","mimesniff","http","whatwg"],"version":"2.0.0","author":{"name":"Domenic Denicola","email":"d@domenic.me","url":"https://domenic.me/"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/jsdom/whatwg-mimetype.git"},"main":"lib/mime-type.js","files":["lib/"],"scripts":{"test":"jest","coverage":"jest --coverage","lint":"eslint .","pretest":"node scripts/get-latest-platform-tests.js"},"devDependencies":{"eslint":"^4.12.1","jest":"^21.2.1","printable-string":"^0.3.0","request":"^2.83.0","whatwg-encoding":"^1.0.3"},"jest":{"coverageDirectory":"coverage","coverageReporters":["lcov","text-summary"],"testEnvironment":"node","testMatch":["<rootDir>/test/**/*.js"]},"gitHead":"4f9c1e4119bea535cb91c76fead464db82cf2d67","bugs":{"url":"https://github.com/jsdom/whatwg-mimetype/issues"},"homepage":"https://github.com/jsdom/whatwg-mimetype#readme","_id":"whatwg-mimetype@2.0.0","_npmVersion":"5.4.2","_nodeVersion":"8.6.0","_npmUser":{"name":"domenic","email":"d@domenic.me"},"dist":{"integrity":"sha512-YqhELyFq4ERam1LyM9VnXH9d0UiaT05sCC1CbmDAk7bq3j4QAO4DjAVaPwi4y/4D2mXjLGYlIhdyCs0GC/w3MQ==","shasum":"552b7b120f98d93b0f1477a757ad1451aadb9cc1","tarball":"http://registry-npm.ywwl.com/whatwg-mimetype/download/whatwg-mimetype-2.0.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCrY2bZXJOygqjGE2UM7V7lCdgl2e7qRm/nbch2NxyX8QIgH6j2A1q1oMY/FUUZUcPKr8DQbs/D/XxggZiA7OTJNxM="}],"size":4703,"noattachment":false,"key":"/whatwg-mimetype/-/whatwg-mimetype-2.0.0.tgz"},"maintainers":[{"name":"domenic","email":"d@domenic.me"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/whatwg-mimetype-2.0.0.tgz_1512887351332_0.5732134545687586"},"directories":{},"publish_time":1512887352340,"_cnpm_publish_time":1512887352340}},"readme":"# Parse, serialize, manipulate, and sniff MIME types\n\nThis package will parse [MIME types](https://mimesniff.spec.whatwg.org/#understanding-mime-types) into a structured format, which can then be manipulated and serialized:\n\n```js\nconst { MIMEType } = require(\"whatwg-mimetype\");\n\nconst mimeType = new MIMEType(`Text/HTML;Charset=\"utf-8\"`);\n\nconsole.assert(mimeType.toString() === \"text/html;charset=utf-8\");\n\nconsole.assert(mimeType.type === \"text\");\nconsole.assert(mimeType.subtype === \"html\");\nconsole.assert(mimeType.essence === \"text/html\");\nconsole.assert(mimeType.parameters.get(\"charset\") === \"utf-8\");\n\nmimeType.parameters.set(\"charset\", \"windows-1252\");\nconsole.assert(mimeType.parameters.get(\"charset\") === \"windows-1252\");\nconsole.assert(mimeType.toString() === \"text/html;charset=windows-1252\");\n\nconsole.assert(mimeType.isHTML() === true);\nconsole.assert(mimeType.isXML() === false);\n```\n\nIt can also [determine the MIME type of a resource](https://mimesniff.spec.whatwg.org/#determining-the-computed-mime-type-of-a-resource) by sniffing its contents:\n\n```js\nconst { computedMIMEType } = require(\"whatwg-mimetype\");\n\nconst pngBytes = new Uint8Array([0x89, 0x50, 0x4E, 0x47, 0x0D, 0x0A, 0x1A, 0x0A]);\n\ncomputedMIMEType(pngBytes).essence;                                    // \"image/png\"\ncomputedMIMEType(pngBytes, { contentTypeHeader: \"image/gif\" }).essence // \"image/png\"\ncomputedMIMEType(pngBytes, { contentTypeHeader: \"text/html\" }).essence // \"text/html\"\n```\n\nParsing, serialization, and sniffing are all fairly complex processes; see the specification for more details:\n\n* [parsing](https://mimesniff.spec.whatwg.org/#parsing-a-mime-type)\n* [serialization](https://mimesniff.spec.whatwg.org/#serializing-a-mime-type)\n* [sniffing](https://mimesniff.spec.whatwg.org/#determining-the-computed-mime-type-of-a-resource)\n\nThis package's algorithms conform to those of the WHATWG [MIME Sniffing Standard](https://mimesniff.spec.whatwg.org/), as of [commit `e7594d5`](https://github.com/whatwg/mimesniff/commit/e7594d531819053508447f688a3bde465531aca5).\n\n## APIs\n\n### `MIMEType`\n\nThe `MIMEType` class's constructor takes a string which it will attempt to parse into a MIME type; if parsing fails, an `Error` will be thrown.\n\n#### The `parse()` static factory method\n\nAs an alternative to the constructor, you can use `MIMEType.parse(string)`. The only difference is that `parse()` will return `null` on failed parsing, whereas the constructor will throw. It thus makes the most sense to use the constructor in cases where unparseable MIME types would be exceptional, and use `parse()` when dealing with input from some unconstrained source.\n\n#### Properties\n\n* `type`: the MIME type's [type](https://mimesniff.spec.whatwg.org/#mime-type-type), e.g. `\"text\"`\n* `subtype`: the MIME type's [subtype](https://mimesniff.spec.whatwg.org/#mime-type-subtype), e.g. `\"html\"`\n* `essence`: the MIME type's [essence](https://mimesniff.spec.whatwg.org/#mime-type-essence), e.g. `\"text/html\"`\n* `parameters`: an instance of `MIMETypeParameters`, containing this MIME type's [parameters](https://mimesniff.spec.whatwg.org/#mime-type-parameters)\n\n`type` and `subtype` can be changed. They will be validated to be non-empty and only contain [HTTP token code points](https://mimesniff.spec.whatwg.org/#http-token-code-point).\n\n`essence` is only a getter, and cannot be changed.\n\n`parameters` is also a getter, but the contents of the `MIMETypeParameters` object are mutable, as described below.\n\n#### Methods\n\n* `toString()` serializes the MIME type to a string\n* `isHTML()`: returns true if this instance represents [a HTML MIME type](https://mimesniff.spec.whatwg.org/#html-mime-type)\n* `isXML()`: returns true if this instance represents [an XML MIME type](https://mimesniff.spec.whatwg.org/#xml-mime-type)\n* `isJavaScript({ prohibitParameters })`: returns true if this instance represents [a JavaScript MIME type](https://html.spec.whatwg.org/multipage/scripting.html#javascript-mime-type). `prohibitParameters` can be set to true to disallow any parameters, i.e. to test if the MIME type's serialization is a [JavaScript MIME type essence match](https://mimesniff.spec.whatwg.org/#javascript-mime-type-essence-match).\n\n_Note: the `isHTML()`, `isXML()`, and `isJavaScript()` methods are speculative, and may be removed or changed in future major versions. See [whatwg/mimesniff#48](https://github.com/whatwg/mimesniff/issues/48) for brainstorming in this area. Currently we implement these mainly because they are useful in jsdom._\n\n### `MIMETypeParameters`\n\nThe `MIMETypeParameters` class, instances of which are returned by `mimeType.parameters`, has equivalent surface API to a [JavaScript `Map`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map).\n\nHowever, `MIMETypeParameters` methods will always interpret their arguments as appropriate for MIME types, so e.g. parameter names will be lowercased, and attempting to set invalid characters will throw.\n\nSome examples:\n\n```js\nconst { MIMEType } = require(\"whatwg-mimetype\");\n\nconst mimeType = new MIMEType(`x/x;a=b;c=D;E=\"F\"`);\n\n// Logs:\n// a b\n// c D\n// e F\nfor (const [name, value] of mimeType.parameters) {\n  console.log(name, value);\n}\n\nconsole.assert(mimeType.parameters.has(\"a\"));\nconsole.assert(mimeType.parameters.has(\"A\"));\nconsole.assert(mimeType.parameters.get(\"A\") === \"b\");\n\nmimeType.parameters.set(\"Q\", \"X\");\nconsole.assert(mimeType.parameters.get(\"q\") === \"X\");\nconsole.assert(mimeType.toString() === \"x/x;a=b;c=d;e=F;q=X\");\n\n// Throws:\nmimeType.parameters.set(\"@\", \"x\");\n```\n\n### `computedMIMEType()`\n\nThe `computedMIMEType(resource, options)` function determines a resource's MIME type using the full [MIME type sniffing algorithm](https://mimesniff.spec.whatwg.org/#determining-the-computed-mime-type-of-a-resource). This includes:\n\n* complexities around how the supplied `Content-Type` header or other external information interacts with (but usually does not override) the sniffing process;\n* the ability to set a \"no-sniff\" flag, like the one used when `X-Content-Type-Options: nosniff` is present, which mostly (but not entirely) prevents sniffing; and\n* the \"Apache bug\" check which occurs when the `Content-Type` header is one of several specific values.\n\nThat is, this doesn't just implement the [rules for identifying an unknown MIME type](https://mimesniff.spec.whatwg.org/#rules-for-identifying-an-unknown-mime-type). It gives you everything you need for a full browser-compatible MIME sniffing procedure.\n\n#### Arguments\n\n* **`resource`** (`Uint8Array`): The resource bytes.\n* **`options.contentTypeHeader`** (`string`): The Content-Type header value, for HTTP resources.\n* **`options.providedType`** (`string`): The MIME type from the filesystem or another protocol (like FTP), for non-HTTP resources.\n* **`options.noSniff`** (`boolean`, default `false`): Whether the `X-Content-Type-Options: nosniff` header was present.\n* **`options.isSupported`** (`function`, default `() => true`): A predicate called with a `MIMEType` instance to check if an image/audio/video MIME type is supported by the user agent. If it returns `false`, sniffing is skipped for that type.\n\nThe `contentTypeHeader` and `providedType` options will be stringified, so you could also supply a `MIMEType` (or a [Node.js `util` module `MIMEType`](https://nodejs.org/api/util.html#class-utilmimetype)).\n\n#### Return value\n\nA `MIMEType` instance representing the computed MIME type.\n","_attachments":{},"homepage":"https://github.com/jsdom/whatwg-mimetype#readme","bugs":{"url":"https://github.com/jsdom/whatwg-mimetype/issues"},"license":"MIT"}