{"_id":"content-type","_rev":"1484566","name":"content-type","description":"Create and parse HTTP Content-Type header","dist-tags":{"latest":"3.1.1"},"maintainers":[{"name":"ulisesgascon","email":"ulisesgascondev@gmail.com"},{"name":"blakeembrey","email":"hello@blakeembrey.com"},{"name":"dougwilson","email":"doug@somethingdoug.com"}],"time":{"modified":"2026-09-23T14:14:33.000Z","created":"2013-10-08T07:37:54.398Z","3.1.1":"2026-09-17T17:22:57.746Z","3.1.0":"2026-09-10T23:10:26.268Z","3.0.0":"2026-08-20T23:01:26.175Z","2.1.0":"2026-08-13T20:32:58.206Z","2.0.0":"2026-05-11T17:22:08.801Z","1.0.5":"2023-01-29T19:25:59.622Z","1.0.4":"2017-09-11T21:42:36.476Z","1.0.3":"2017-09-11T04:44:08.721Z","1.0.2":"2016-05-10T03:59:48.395Z","1.0.1":"2015-02-14T00:37:57.925Z","1.0.0":"2015-02-02T07:31:29.037Z","0.0.1":"2013-10-08T07:37:54.398Z"},"users":{"goodseller":true,"simplyianm":true,"rocket0191":true,"qqqppp9998":true,"snowdream":true,"rbecheras":true,"huhgawz":true,"shanewholloway":true,"eyson":true,"zuojiang":true,"semir2":true,"zhenguo.zhao":true,"hualei":true,"flumpus-dev":true},"author":{"name":"Douglas Christopher Wilson","email":"doug@somethingdoug.com"},"repository":{"url":"git+https://github.com/jshttp/content-type.git","type":"git"},"versions":{"3.1.1":{"_id":"content-type@3.1.1","bugs":{"url":"https://github.com/jshttp/content-type/issues"},"dist":{"shasum":"7c80289f1a03ae3fc1f8399c388d22ae44d1394f","tarball":"http://registry-npm.ywwl.com/content-type/download/content-type-3.1.1.tgz","integrity":"sha512-GW4qUsfFo59d0HbUibDlWv5wPz+vAAcaTWbKIuKCf0JkC7wWkSyf8f13IpXn5JkeMlB2P8iTSSIjwXljorg2vA==","fileCount":6,"unpackedSize":36219,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/content-type@3.1.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIEq9vYsRmJ32pxSXGKnMxyVo/mHI+eDfJptoshKgclzUAiEArdYJCdPpvXNh5RSh/UwLUivvNFRojW0dSgq8bwPM+jc="}],"size":8310,"noattachment":false,"key":"/content-type/-/content-type-3.1.1.tgz"},"main":"./dist/index.js","name":"content-type","type":"module","author":{"name":"Douglas Christopher Wilson","email":"doug@somethingdoug.com"},"engines":{"node":">=22"},"exports":"./dist/index.js","funding":{"url":"https://opencollective.com/express","type":"opencollective"},"gitHead":"d005d8bfd9846bb9eb73a9aad0944536e1a5cf39","license":"MIT","scripts":{"size":"size-limit","test":"ts-scripts test && npm run size","bench":"vitest bench","build":"ts-scripts build","specs":"ts-scripts specs","format":"ts-scripts format","prepare":"ts-scripts install && npm run build"},"typings":"./dist/index.d.ts","version":"3.1.1","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:7bdcc576-a33f-4d3b-a990-9c30738fc4c6"},"approver":{"name":"blakeembrey","email":"hello@blakeembrey.com"}},"homepage":"https://github.com/jshttp/content-type#readme","keywords":["content-type","http","req","res","rfc7231","rfc9110"],"repository":{"url":"git+https://github.com/jshttp/content-type.git","type":"git"},"size-limit":[{"path":"dist/index.js","limit":"1.15 kB"}],"ts-scripts":{"dist":["dist"],"project":["tsconfig.build.json"]},"_npmVersion":"11.19.1","description":"Create and parse HTTP Content-Type header","directories":{},"maintainers":[{"name":"ulisesgascon","email":"ulisesgascondev@gmail.com"},{"name":"blakeembrey","email":"hello@blakeembrey.com"},{"name":"dougwilson","email":"doug@somethingdoug.com"}],"_nodeVersion":"26.9.0","devDependencies":{"vitest":"^4.1.11","size-limit":"^13.0.3","typescript":"^7.0.2","@vitest/coverage-v8":"^4.1.11","@borderless/ts-scripts":"^0.15.0","@size-limit/preset-small-lib":"^13.0.3"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/content-type_3.1.1_1789665777658_0.4971689350556654"},"_hasShrinkwrap":false,"publish_time":1789665777746,"_cnpm_publish_time":1789665777746},"3.1.0":{"_id":"content-type@3.1.0","bugs":{"url":"https://github.com/jshttp/content-type/issues"},"dist":{"shasum":"69d1afda3d440fcdae49713eaa3bdad8df9a1aab","tarball":"http://registry-npm.ywwl.com/content-type/download/content-type-3.1.0.tgz","integrity":"sha512-z26wZR7iXahgpSK7XgnB4IbRVmUNSODvsX9qC9TAru7AcWGiqn5YKy+OH3PLRrwyAnewykKhCqnD+VV3a8uT8Q==","fileCount":6,"unpackedSize":35933,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/content-type@3.1.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQD+kaPHFc03MQJdSyO1DAaSL9gxi0Ris8zq8pAeINJbtQIgKqwh0ypX2VZ+/p6bIwZj8FQwcaH09CRiFpgtq7NM1Wg="}],"size":8184,"noattachment":false,"key":"/content-type/-/content-type-3.1.0.tgz"},"main":"./dist/index.js","name":"content-type","type":"module","author":{"name":"Douglas Christopher Wilson","email":"doug@somethingdoug.com"},"engines":{"node":">=22"},"exports":"./dist/index.js","funding":{"url":"https://opencollective.com/express","type":"opencollective"},"gitHead":"04f6177935533a4b7cd44c92c7fbfbe31446e815","license":"MIT","scripts":{"size":"size-limit","test":"ts-scripts test && npm run size","bench":"vitest bench","build":"ts-scripts build","specs":"ts-scripts specs","format":"ts-scripts format","prepare":"ts-scripts install && npm run build"},"typings":"./dist/index.d.ts","version":"3.1.0","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:7bdcc576-a33f-4d3b-a990-9c30738fc4c6"},"approver":{"name":"blakeembrey","email":"hello@blakeembrey.com"}},"homepage":"https://github.com/jshttp/content-type#readme","keywords":["content-type","http","req","res","rfc7231","rfc9110"],"repository":{"url":"git+https://github.com/jshttp/content-type.git","type":"git"},"size-limit":[{"path":"dist/index.js","limit":"1.15 kB"}],"ts-scripts":{"dist":["dist"],"project":["tsconfig.build.json"]},"_npmVersion":"11.19.1","description":"Create and parse HTTP Content-Type header","directories":{},"maintainers":[{"name":"ulisesgascon","email":"ulisesgascondev@gmail.com"},{"name":"blakeembrey","email":"hello@blakeembrey.com"},{"name":"dougwilson","email":"doug@somethingdoug.com"}],"_nodeVersion":"26.8.2","devDependencies":{"vitest":"^4.1.11","size-limit":"^13.0.3","typescript":"^7.0.2","@vitest/coverage-v8":"^4.1.11","@borderless/ts-scripts":"^0.15.0","@size-limit/preset-small-lib":"^13.0.3"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/content-type_3.1.0_1789081826187_0.7684574628453875"},"_hasShrinkwrap":false,"publish_time":1789081826268,"_cnpm_publish_time":1789081826268},"3.0.0":{"_id":"content-type@3.0.0","bugs":{"url":"https://github.com/jshttp/content-type/issues"},"dist":{"shasum":"c946981e09aba276f5f5b21223bd0c01fded9c15","tarball":"http://registry-npm.ywwl.com/content-type/download/content-type-3.0.0.tgz","integrity":"sha512-AIi5H6p0xk5uknXcN3/rmhP8jgp69OfSe/JuKiQAFprJ7UGw7mwj7m4XcmDzlrnJDG+cGpphAINGdU3g3g7kDw==","fileCount":6,"unpackedSize":23006,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/content-type@3.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCICmcsgEpvn+ZATTjaXuR+TgH4Ll0MKqLzA8GHAfCXAoQAiB5Ip/UJdRRDRTwD07LyyACM+CCpY6IALgMbE+KWuFFVg=="}],"size":6140,"noattachment":false,"key":"/content-type/-/content-type-3.0.0.tgz"},"main":"./dist/index.js","name":"content-type","type":"module","author":{"name":"Douglas Christopher Wilson","email":"doug@somethingdoug.com"},"engines":{"node":">=22"},"exports":"./dist/index.js","funding":{"url":"https://opencollective.com/express","type":"opencollective"},"gitHead":"04b9688ca0f574603e11e81ac4d7fc2fbf9008de","license":"MIT","scripts":{"test":"ts-scripts test","bench":"vitest bench","build":"ts-scripts build","specs":"ts-scripts specs","format":"ts-scripts format","prepare":"ts-scripts install && npm run build"},"typings":"./dist/index.d.ts","version":"3.0.0","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:7bdcc576-a33f-4d3b-a990-9c30738fc4c6"},"approver":{"name":"blakeembrey","email":"hello@blakeembrey.com"}},"homepage":"https://github.com/jshttp/content-type#readme","keywords":["content-type","http","req","res","rfc7231","rfc9110"],"repository":{"url":"git+https://github.com/jshttp/content-type.git","type":"git"},"ts-scripts":{"dist":["dist"],"project":["tsconfig.build.json"]},"_npmVersion":"11.19.0","description":"Create and parse HTTP Content-Type header","directories":{},"maintainers":[{"name":"ulisesgascon","email":"ulisesgascondev@gmail.com"},{"name":"blakeembrey","email":"hello@blakeembrey.com"},{"name":"dougwilson","email":"doug@somethingdoug.com"}],"_nodeVersion":"26.7.0","devDependencies":{"vitest":"^4.1.11","typescript":"^7.0.2","@vitest/coverage-v8":"^4.1.11","@borderless/ts-scripts":"^0.15.0"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/content-type_3.0.0_1787266886061_0.026727981863394534"},"_hasShrinkwrap":false,"publish_time":1787266886175,"_cnpm_publish_time":1787266886175},"2.1.0":{"name":"content-type","version":"2.1.0","keywords":["content-type","http","req","res","rfc7231","rfc9110"],"author":{"name":"Douglas Christopher Wilson","email":"doug@somethingdoug.com"},"license":"MIT","_id":"content-type@2.1.0","maintainers":[{"name":"ulisesgascon","email":"ulisesgascondev@gmail.com"},{"name":"blakeembrey","email":"hello@blakeembrey.com"},{"name":"dougwilson","email":"doug@somethingdoug.com"}],"homepage":"https://github.com/jshttp/content-type#readme","bugs":{"url":"https://github.com/jshttp/content-type/issues"},"dist":{"shasum":"d9389c43c0a8cf6a355db464d21e07092a40493a","tarball":"http://registry-npm.ywwl.com/content-type/download/content-type-2.1.0.tgz","fileCount":6,"integrity":"sha512-mj7UPXE0jaqaOsukNZRUEfEi2AcL7C/vwmwcHV0O97eO1E1pxBZuyjlZrx5seTaNBg1U6+o35wpa35Qfcc+7ag==","signatures":[{"sig":"MEQCIAesCKlTxK7DDJj+bRVxVqnPebCrDYKlCvXYXzC13PTbAiBzuJ2rrSEvAQKMfpV7FwOMi8eKomTRHVf5/y9ZnGl8sQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEQCIDm2i9kdHCg3OWR9UNJs52nxr+qrdnmtp6Rhk0R0mi4EAiBtS5WDVW31UZOXRRfjO4UPpP3sfCJHmwURZckhcnrAyg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":23136,"size":6227,"noattachment":false,"key":"/content-type/-/content-type-2.1.0.tgz"},"main":"./dist/index.js","type":"commonjs","engines":{"node":">=18"},"exports":"./dist/index.js","funding":{"url":"https://opencollective.com/express","type":"opencollective"},"gitHead":"8c2fedda8b40bd519c3ca49cc2a80aebaa1446e3","scripts":{"test":"ts-scripts test","bench":"vitest bench","build":"ts-scripts build","specs":"ts-scripts specs","format":"ts-scripts format","prepare":"ts-scripts install && npm run build"},"typings":"./dist/index.d.ts","_npmUser":{"name":"blakeembrey","email":"hello@blakeembrey.com"},"repository":{"url":"git+https://github.com/jshttp/content-type.git","type":"git"},"ts-scripts":{"dist":["dist"],"project":["tsconfig.build.json"]},"_npmVersion":"11.17.0","description":"Create and parse HTTP Content-Type header","directories":{},"_nodeVersion":"26.5.1","_hasShrinkwrap":false,"devDependencies":{"vitest":"^3.2.4","typescript":"^5.7.3","@vitest/coverage-v8":"^3.0.5","@borderless/ts-scripts":"^0.15.0"},"_npmOperationalInternal":{"tmp":"tmp/content-type_2.1.0_1786653178120_0.717641487797847","host":"s3://npm-registry-packages-npm-production"},"publish_time":1786653178206,"_cnpm_publish_time":1786653178206},"2.0.0":{"name":"content-type","version":"2.0.0","keywords":["content-type","http","req","res","rfc7231","rfc9110"],"author":{"name":"Douglas Christopher Wilson","email":"doug@somethingdoug.com"},"license":"MIT","_id":"content-type@2.0.0","maintainers":[{"name":"ulisesgascon","email":"ulisesgascondev@gmail.com"},{"name":"blakeembrey","email":"hello@blakeembrey.com"},{"name":"dougwilson","email":"doug@somethingdoug.com"}],"homepage":"https://github.com/jshttp/content-type#readme","bugs":{"url":"https://github.com/jshttp/content-type/issues"},"dist":{"shasum":"2fb3ede69dffa0af78ca7c4ce7589680638b56df","tarball":"http://registry-npm.ywwl.com/content-type/download/content-type-2.0.0.tgz","fileCount":6,"integrity":"sha512-j/O/d7GcZCyNl7/hwZAb606rzqkyvaDctLmckbxLzHvFBzTJHuGEdodATcP3yIRoDrLHkIATJuvzbFlp/ki2cQ==","signatures":[{"sig":"MEUCIQDo/pgl1B1Nh7gcPd6UZuC4ZbXRQbyK9yyb/vbs0gfXawIgbAZqvZUEIG4Gg+scaeGVJziTkb9NRH0nnbYRAHh1VUE=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":20751,"size":5728,"noattachment":false,"key":"/content-type/-/content-type-2.0.0.tgz"},"main":"./dist/index.js","type":"commonjs","engines":{"node":">=18"},"exports":"./dist/index.js","funding":{"url":"https://opencollective.com/express","type":"opencollective"},"gitHead":"7e7a40b5a8725118c04289541d5ecb074c0c51ea","scripts":{"test":"ts-scripts test","bench":"vitest bench","build":"ts-scripts build","specs":"ts-scripts specs","format":"ts-scripts format","prepare":"ts-scripts install && npm run build"},"typings":"./dist/index.d.ts","_npmUser":{"name":"blakeembrey","email":"hello@blakeembrey.com"},"repository":{"url":"git+https://github.com/jshttp/content-type.git","type":"git"},"ts-scripts":{"dist":["dist"],"project":["tsconfig.build.json"]},"_npmVersion":"11.13.0","description":"Create and parse HTTP Content-Type header","directories":{},"_nodeVersion":"26.1.0","_hasShrinkwrap":false,"devDependencies":{"vitest":"^3.2.4","typescript":"^5.7.3","@vitest/coverage-v8":"^3.0.5","@borderless/ts-scripts":"^0.15.0"},"_npmOperationalInternal":{"tmp":"tmp/content-type_2.0.0_1778520128650_0.2234915362065566","host":"s3://npm-registry-packages-npm-production"},"publish_time":1778520128801,"_cnpm_publish_time":1778520128801},"1.0.5":{"name":"content-type","description":"Create and parse HTTP Content-Type header","version":"1.0.5","author":{"name":"Douglas Christopher Wilson","email":"doug@somethingdoug.com"},"license":"MIT","keywords":["content-type","http","req","res","rfc7231"],"repository":{"type":"git","url":"git+https://github.com/jshttp/content-type.git"},"devDependencies":{"deep-equal":"1.0.1","eslint":"8.32.0","eslint-config-standard":"15.0.1","eslint-plugin-import":"2.27.5","eslint-plugin-node":"11.1.0","eslint-plugin-promise":"6.1.1","eslint-plugin-standard":"4.1.0","mocha":"10.2.0","nyc":"15.1.0"},"engines":{"node":">= 0.6"},"scripts":{"lint":"eslint .","test":"mocha --reporter spec --check-leaks --bail test/","test-ci":"nyc --reporter=lcovonly --reporter=text npm test","test-cov":"nyc --reporter=html --reporter=text npm test","version":"node scripts/version-history.js && git add HISTORY.md"},"gitHead":"6115a4064e4dfd9845241c3f89c233ee2423deeb","bugs":{"url":"https://github.com/jshttp/content-type/issues"},"homepage":"https://github.com/jshttp/content-type#readme","_id":"content-type@1.0.5","_nodeVersion":"18.13.0","_npmVersion":"8.19.3","dist":{"integrity":"sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==","shasum":"8b773162656d1d1086784c8f23a54ce6d73d7918","tarball":"http://registry-npm.ywwl.com/content-type/download/content-type-1.0.5.tgz","fileCount":5,"unpackedSize":10471,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAOjshRzvCHEtoGbwMNDa5gcXrVmrEvYFj1lNvszSRDrAiEAz70aazwtwXKqbbN4J19JbeGcEbVkfO3B3/Mmv6OEhfE="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj1shHACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoVkQ//W5y8wqmK9RwQlZ+c+Vx9as9LDZ/8f/hKHDOS7/PSl9vTOqdc\r\nWaS0WohfVHqmLvmF2nqFukL8dCtls1MtIopqPz90Z3DoUcTkm+LN0lcjcGd2\r\nOh45l7odtaXzFW5K0kzPlNAbgPPaWL4k6YT0ybdtMvVRHjoLB1V/I0JtUmP7\r\n2I4g5yezk+sS+JSmkgfMW3BiJZmWzLrl5YBtvQVtv1Nfw4S7wGmnfSoVtktq\r\nwbTHnhwsnJQcHfcGrGIZmtDmgySiBoWwURBbDlIthQmSxpscjlvpGSWLygK5\r\n3nEa/e+Pbv23x9gC0DmrnT2WdkI66jLS+56ixhqQGzeW7D6dahFklJQSmN8C\r\n2Aj+8LtNZLjo0DdZ6NW5stezwo/ELBanOmR3cLJHQ/+kwBomrPVYKX72yzd1\r\n4clMw6zFUKFnaZS+8r0R3GYUvoeylueoaBBLRiBB5c8pJNXF3mLZ1Zig47dh\r\npUuvAJ+TCfcFBOFSI/vKsTQ0E8TMSOQYOuM6SLAeWsxjJBLdedLHmKK9Y8VC\r\nWRmOWIrE8j1sc6E4odGPdy/tgpU+gLp5xG2IUF58XIbQih3OoYpN77bRdTYX\r\nUVha8Xf60h6ntj0NuS9zrK3LWWyfCzSPd8bX/caFUUeZjZwNwP2d/SCo8tia\r\nZ9SPx+wvGeJ2bqwqVg5r13fC/iI0+PmAagI=\r\n=Upqr\r\n-----END PGP SIGNATURE-----\r\n","size":3914,"noattachment":false,"key":"/content-type/-/content-type-1.0.5.tgz"},"_npmUser":{"name":"dougwilson","email":"doug@somethingdoug.com"},"directories":{},"maintainers":[{"name":"dougwilson","email":"doug@somethingdoug.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/content-type_1.0.5_1675020359482_0.5719775224587853"},"_hasShrinkwrap":false,"publish_time":1675020359622,"_cnpm_publish_time":1675020359622},"1.0.4":{"name":"content-type","description":"Create and parse HTTP Content-Type header","version":"1.0.4","author":{"name":"Douglas Christopher Wilson","email":"doug@somethingdoug.com"},"license":"MIT","keywords":["content-type","http","req","res","rfc7231"],"repository":{"type":"git","url":"git+https://github.com/jshttp/content-type.git"},"devDependencies":{"eslint":"3.19.0","eslint-config-standard":"10.2.1","eslint-plugin-import":"2.7.0","eslint-plugin-node":"5.1.1","eslint-plugin-promise":"3.5.0","eslint-plugin-standard":"3.0.1","istanbul":"0.4.5","mocha":"~1.21.5"},"files":["LICENSE","HISTORY.md","README.md","index.js"],"engines":{"node":">= 0.6"},"scripts":{"lint":"eslint .","test":"mocha --reporter spec --check-leaks --bail test/","test-ci":"istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter spec --check-leaks test/","test-cov":"istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot --check-leaks test/"},"gitHead":"d22f8ac6c407789c906bd6fed137efde8f772b09","bugs":{"url":"https://github.com/jshttp/content-type/issues"},"homepage":"https://github.com/jshttp/content-type#readme","_id":"content-type@1.0.4","_npmVersion":"5.3.0","_nodeVersion":"6.11.3","_npmUser":{"name":"dougwilson","email":"doug@somethingdoug.com"},"dist":{"integrity":"sha512-hIP3EEPs8tB9AT1L+NUqtwOAps4mk2Zob89MWXMHjHWg9milF/j4osnnQLXBCBFBk/tvIG/tUc9mOUJiPBhPXA==","shasum":"e138cc75e040c727b1966fe5e5f8c9aee256fe3b","tarball":"http://registry-npm.ywwl.com/content-type/download/content-type-1.0.4.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDXUI1k+Yyuh7ELkCaqdje0TXLtHbvxAa6vAYZHZiFe2QIgNABlZR/wtggmzisHn+WaEQ7ETWKTdCTCZd23/d8POSo="}],"size":4655,"noattachment":false,"key":"/content-type/-/content-type-1.0.4.tgz"},"maintainers":[{"name":"dougwilson","email":"doug@somethingdoug.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/content-type-1.0.4.tgz_1505166155546_0.06956395204178989"},"directories":{},"publish_time":1505166156476,"_cnpm_publish_time":1505166156476},"1.0.3":{"name":"content-type","description":"Create and parse HTTP Content-Type header","version":"1.0.3","author":{"name":"Douglas Christopher Wilson","email":"doug@somethingdoug.com"},"license":"MIT","keywords":["content-type","http","req","res","rfc7231"],"repository":{"type":"git","url":"git+https://github.com/jshttp/content-type.git"},"devDependencies":{"eslint":"3.19.0","eslint-config-standard":"10.2.1","eslint-plugin-import":"2.7.0","eslint-plugin-node":"5.1.1","eslint-plugin-promise":"3.5.0","eslint-plugin-standard":"3.0.1","istanbul":"0.4.5","mocha":"~1.21.5"},"files":["LICENSE","HISTORY.md","README.md","index.js"],"engines":{"node":">= 0.6"},"scripts":{"lint":"eslint .","test":"mocha --reporter spec --check-leaks --bail test/","test-ci":"istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter spec --check-leaks test/","test-cov":"istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot --check-leaks test/"},"gitHead":"255c440e81ffe0f3eaa4b4644360d2f352aeff48","bugs":{"url":"https://github.com/jshttp/content-type/issues"},"homepage":"https://github.com/jshttp/content-type#readme","_id":"content-type@1.0.3","_shasum":"da18ef2fb64ca6acc905cc72017d3f38185b91d1","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.11.1","_npmUser":{"name":"dougwilson","email":"doug@somethingdoug.com"},"dist":{"shasum":"da18ef2fb64ca6acc905cc72017d3f38185b91d1","tarball":"http://registry-npm.ywwl.com/content-type/download/content-type-1.0.3.tgz","integrity":"sha512-nlrmiLOH5ScOilJszGiFaA2PfBTIyoNTydx5N0+GKv5Nq/CUrqWyyw4xPWDtpJbL3G9Wrqb2gTv7Q1bMbXujhQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD3VMA5kK8Q1tWZd71dLeEqvChH9B+ZeyW2kCTgUHe1GAIgFjNftrruAisx3g2MHqE8kOzDFblsITrRWx5JPTje3As="}],"size":3811,"noattachment":false,"key":"/content-type/-/content-type-1.0.3.tgz"},"maintainers":[{"name":"dougwilson","email":"doug@somethingdoug.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/content-type-1.0.3.tgz_1505105047769_0.7591841116081923"},"directories":{},"publish_time":1505105048721,"_cnpm_publish_time":1505105048721},"1.0.2":{"name":"content-type","description":"Create and parse HTTP Content-Type header","version":"1.0.2","author":{"name":"Douglas Christopher Wilson","email":"doug@somethingdoug.com"},"license":"MIT","keywords":["content-type","http","req","res","rfc7231"],"repository":{"type":"git","url":"git+https://github.com/jshttp/content-type.git"},"devDependencies":{"istanbul":"0.4.3","mocha":"~1.21.5"},"files":["LICENSE","HISTORY.md","README.md","index.js"],"engines":{"node":">= 0.6"},"scripts":{"test":"mocha --reporter spec --check-leaks --bail test/","test-ci":"istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter spec --check-leaks test/","test-cov":"istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot --check-leaks test/"},"gitHead":"8118763adfbbac80cf1254191889330aec8b8be7","bugs":{"url":"https://github.com/jshttp/content-type/issues"},"homepage":"https://github.com/jshttp/content-type#readme","_id":"content-type@1.0.2","_shasum":"b7d113aee7a8dd27bd21133c4dc2529df1721eed","_from":".","_npmVersion":"2.15.1","_nodeVersion":"4.4.3","_npmUser":{"name":"dougwilson","email":"doug@somethingdoug.com"},"dist":{"shasum":"b7d113aee7a8dd27bd21133c4dc2529df1721eed","tarball":"http://registry-npm.ywwl.com/content-type/download/content-type-1.0.2.tgz","integrity":"sha512-TFmXoAjJQD7hApJpE/GttZreniTw+DYE4zlDmPRc8Q75KXrU8hFt3Qeckml/mOTVAxwbMZ3WwdEcQCzTpfV5ZA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDvbW7DQn6Np006H963b0nCuVtDhNgoSpw6ezVBrWWSaAiAyKGFb4QJw1F/3XdVJpyA/LSPsUnSCgAqTnmcYEZnhxw=="}],"size":3662,"noattachment":false,"key":"/content-type/-/content-type-1.0.2.tgz"},"maintainers":[{"name":"dougwilson","email":"doug@somethingdoug.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/content-type-1.0.2.tgz_1462852785748_0.5491233412176371"},"directories":{},"publish_time":1462852788395,"_cnpm_publish_time":1462852788395},"1.0.1":{"name":"content-type","description":"Create and parse HTTP Content-Type header","version":"1.0.1","author":{"name":"Douglas Christopher Wilson","email":"doug@somethingdoug.com"},"license":"MIT","keywords":["content-type","http","req","res","rfc7231"],"repository":{"type":"git","url":"https://github.com/jshttp/content-type"},"devDependencies":{"istanbul":"0.3.5","mocha":"~1.21.5"},"files":["LICENSE","HISTORY.md","README.md","index.js"],"engines":{"node":">= 0.6"},"scripts":{"test":"mocha --reporter spec --check-leaks --bail test/","test-ci":"istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter spec --check-leaks test/","test-cov":"istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot --check-leaks test/"},"gitHead":"3aa58f9c5a358a3634b8601602177888b4a477d8","bugs":{"url":"https://github.com/jshttp/content-type/issues"},"homepage":"https://github.com/jshttp/content-type","_id":"content-type@1.0.1","_shasum":"a19d2247327dc038050ce622b7a154ec59c5e600","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"dougwilson","email":"doug@somethingdoug.com"},"maintainers":[{"name":"dougwilson","email":"doug@somethingdoug.com"}],"dist":{"shasum":"a19d2247327dc038050ce622b7a154ec59c5e600","tarball":"http://registry-npm.ywwl.com/content-type/download/content-type-1.0.1.tgz","integrity":"sha512-YE2Hbbw/jcvxJUVaPAxnbirzST4YWiCdJ98ts6s+zS0CelpTZp9S6fIcypEc4cp/ddtNhx+sSPzAFJutT6H4AA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIF3Z8VOeFQdVUUBvDbcBs0XgzgkN2hAlm6K5LO9VZleoAiBLwXbEcRmUEEjWUd0a4IPQpGjjuiO/JdhlyGNbSPLmTg=="}],"size":3635,"noattachment":false,"key":"/content-type/-/content-type-1.0.1.tgz"},"directories":{},"publish_time":1423874277925,"_cnpm_publish_time":1423874277925},"1.0.0":{"name":"content-type","description":"Create and parse HTTP Content-Type header","version":"1.0.0","author":{"name":"Douglas Christopher Wilson","email":"doug@somethingdoug.com"},"license":"MIT","keywords":["content-type","http","req","res","rfc7231"],"repository":{"type":"git","url":"https://github.com/jshttp/content-type"},"devDependencies":{"istanbul":"0.3.5","mocha":"~1.21.5"},"files":["LICENSE","HISTORY.md","README.md","index.js"],"engines":{"node":">= 0.6"},"scripts":{"test":"mocha --reporter spec --check-leaks --bail test/","test-ci":"istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter spec --check-leaks test/","test-cov":"istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot --check-leaks test/"},"gitHead":"31266966b656ace33556e8dfd432b0790df82870","bugs":{"url":"https://github.com/jshttp/content-type/issues"},"homepage":"https://github.com/jshttp/content-type","_id":"content-type@1.0.0","_shasum":"2b66ca456422371bd04e63fdda92501210f40be4","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"dougwilson","email":"doug@somethingdoug.com"},"maintainers":[{"name":"deoxxa","email":"deoxxa@fknsrs.biz"},{"name":"dougwilson","email":"doug@somethingdoug.com"}],"dist":{"shasum":"2b66ca456422371bd04e63fdda92501210f40be4","tarball":"http://registry-npm.ywwl.com/content-type/download/content-type-1.0.0.tgz","integrity":"sha512-bLJw01/p0oGB1LvEjVqp2fpfD/WjmE/T+cgns1XuNBnHyRbMqKyhBTkRGaoaD5K0rky+0pgrZXGP3PO7GBKBWg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDlX5CpB3FO7RVTWilGtj+jgA8x+jrdb8AoN4JChQ/QfwIgHG0SR9Aumg8NPArnfLaRoRzp2vejOwrJsSJYyc9dy5k="}],"size":3528,"noattachment":false,"key":"/content-type/-/content-type-1.0.0.tgz"},"directories":{},"publish_time":1422862289037,"_cnpm_publish_time":1422862289037},"0.0.1":{"name":"content-type","version":"0.0.1","description":"Javascript/ECMAScript library for parsing Content-Type and Media/MIME type strings","main":"content-type.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git://github.com/deoxxa/content-type.git"},"keywords":["content-type","parse","http","header"],"author":{"name":"Austin Wright","email":"https://github.com/Acubed"},"license":"Unlicense <http://unlicense.org/>","bugs":{"url":"https://github.com/deoxxa/content-type/issues"},"_id":"content-type@0.0.1","dist":{"shasum":"b8dd2786f814b2c8d0985fdbea8a3d361366ea80","tarball":"http://registry-npm.ywwl.com/content-type/download/content-type-0.0.1.tgz","integrity":"sha512-O0mfhVaAsEE6lbSrUGqmPSVq3HCUxjuAtOTMYBgBMgtKs5NafvxWGedsE3rLipY0Ih+1/F7JesQEgxd09Lg6Gw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCE/qwq98FxUvuma/ytWBwFphtBrr2RbHjnAdSU37CTTgIgSfFHbjtrima7vShOZ5JYTPPtC7J6SIfdUpA9VwrQlCY="}],"size":3974,"noattachment":false,"key":"/content-type/-/content-type-0.0.1.tgz"},"_from":".","_npmVersion":"1.3.8","_npmUser":{"name":"deoxxa","email":"deoxxa@fknsrs.biz"},"maintainers":[{"name":"deoxxa","email":"deoxxa@fknsrs.biz"}],"directories":{},"publish_time":1381217874398,"_cnpm_publish_time":1381217874398}},"readme":"# content-type\n\n[![NPM version][npm-image]][npm-url]\n[![NPM downloads][downloads-image]][downloads-url]\n[![Build status][build-image]][build-url]\n[![Build coverage][coverage-image]][coverage-url]\n[![License][license-image]][license-url]\n\nCreate and parse HTTP `Content-Type` header.\n\n## Installation\n\n```sh\nnpm install content-type\n```\n\n## API\n\n```js\nimport * as contentType from \"content-type\";\n```\n\n### contentType.parse(string, options?)\n\n```js\nconst obj = contentType.parse(\"image/svg+xml; charset=utf-8\");\n```\n\nParse a `Content-Type` header. This will return an object with the following properties (examples are shown for the string `'image/svg+xml; charset=utf-8'`):\n\n- `type`: The media type (always lower case). Example: `'image/svg+xml'`.\n- `parameters`: An object of the parameters in the media type (parameter name is always lower case). Example: `{charset: 'utf-8'}`.\n- `index`: The index where parsing stopped. Example: `33`.\n\nThe parser is lenient and does not validate or throw on malformed input.\n\n#### Options\n\n- `parameters` (default: `true`): Set to `false` to skip parameters.\n- `comma` (default: `false`): Set to `true` to stop on a comma. This can be used to parse the media range in an `Accept` header.\n- `start` (default: `0`): Set index to start parsing from.\n\n### contentType.format(obj)\n\n```js\nconst str = contentType.format({\n  type: \"image/svg+xml\",\n  parameters: { charset: \"utf-8\" },\n});\n```\n\nFormat an object into a `Content-Type` header. This will return a string of the content type for the given object with the following properties (examples are shown that produce the string `'image/svg+xml; charset=utf-8'`):\n\n- `type`: The media type. Example: `'image/svg+xml'`.\n- `parameters`: An optional object of the parameters in the media type. Example: `{charset: 'utf-8'}`.\n\nThrows a `TypeError` if the object contains an invalid type or parameter names.\n\n### Validation\n\nThis package exposes the validation functions used by `format`:\n\n- `isTypeValid(str, start?, end?)` Validates the MIME type against RFC 9110.\n- `isTokenValid(str, start?, end?)` Validates a token against RFC 9110 (used for the parameter name).\n\nPassing `start` and `end` allows for validating a subset of a string, instead of using `str#slice`.\n\n## License\n\n[MIT](LICENSE)\n\n[npm-image]: https://img.shields.io/npm/v/content-type\n[npm-url]: https://npmjs.org/package/content-type\n[downloads-image]: https://img.shields.io/npm/dm/content-type\n[downloads-url]: https://npmjs.org/package/content-type\n[build-image]: https://img.shields.io/github/actions/workflow/status/jshttp/content-type/ci.yml?branch=master\n[build-url]: https://github.com/jshttp/content-type/actions/workflows/ci.yml?query=branch%3Amaster\n[coverage-image]: https://img.shields.io/codecov/c/gh/jshttp/content-type\n[coverage-url]: https://codecov.io/gh/jshttp/content-type\n[license-image]: http://img.shields.io/npm/l/content-type.svg?style=flat\n[license-url]: LICENSE\n","_attachments":{},"homepage":"https://github.com/jshttp/content-type#readme","bugs":{"url":"https://github.com/jshttp/content-type/issues"},"license":"MIT"}