{"_id":"cache-content-type","_rev":"235763","name":"cache-content-type","description":"Create a full Content-Type header given a MIME type or extension and catch the result","dist-tags":{"latest":"1.0.1"},"maintainers":[{"name":"dead_horse","email":""}],"time":{"modified":"2023-03-24T16:25:18.000Z","created":"2018-07-11T08:12:48.833Z","1.0.1":"2018-07-18T14:17:03.773Z","1.0.0":"2018-07-11T08:12:48.833Z"},"users":{},"author":{"name":"dead_horse"},"repository":{"type":"git","url":"git+https://github.com/node-modules/cache-content-type.git"},"versions":{"1.0.1":{"name":"cache-content-type","version":"1.0.1","description":"Create a full Content-Type header given a MIME type or extension and catch the result","main":"index.js","files":["index.js"],"scripts":{"test":"egg-bin test","cov":"egg-bin cov","ci":"eslint . && npm run cov"},"dependencies":{"mime-types":"^2.1.18","ylru":"^1.2.0"},"devDependencies":{"egg-bin":"^4.7.1","egg-ci":"^1.8.0","eslint":"^5.1.0","eslint-config-egg":"^7.0.0","mm":"^2.2.0"},"repository":{"type":"git","url":"git+https://github.com/node-modules/cache-content-type.git"},"keywords":["mime","content-type","lru"],"engines":{"node":">= 6.0.0"},"ci":{"version":"6, 8, 10"},"author":{"name":"dead_horse"},"license":"MIT","gitHead":"8a43ff8b3f800aef8fa366d99e0a2828705a9ffe","bugs":{"url":"https://github.com/node-modules/cache-content-type/issues"},"homepage":"https://github.com/node-modules/cache-content-type#readme","_id":"cache-content-type@1.0.1","_npmVersion":"5.6.0","_nodeVersion":"8.11.1","_npmUser":{"name":"dead_horse","email":"dead_horse@qq.com"},"dist":{"shasum":"035cde2b08ee2129f4a8315ea8f00a00dba1453c","size":1140,"noattachment":false,"key":"/cache-content-type/-/cache-content-type-1.0.1.tgz","tarball":"http://name.csiicloud.com:7001/cache-content-type/download/cache-content-type-1.0.1.tgz"},"maintainers":[{"name":"dead_horse","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cache-content-type_1.0.1_1531923423675_0.6944377224730394"},"_hasShrinkwrap":false,"publish_time":1531923423773,"_cnpm_publish_time":1531923423773,"_cnpmcore_publish_time":"2021-12-14T02:20:10.806Z"},"1.0.0":{"name":"cache-content-type","version":"1.0.0","description":"Create a full Content-Type header given a MIME type or extension and catch the result","main":"index.js","files":["index.js"],"scripts":{"test":"egg-bin test","cov":"egg-bin cov","ci":"eslint . && npm run cov"},"dependencies":{"mime-types":"^2.1.18","ylru":"^1.2.0"},"devDependencies":{"egg-bin":"^4.7.1","egg-ci":"^1.8.0","eslint":"^5.1.0","eslint-config-egg":"^7.0.0","mm":"^2.2.0"},"repository":{"type":"git","url":"git+https://github.com/node-modules/cache-content-type.git"},"keywords":["mime","content-type","lru"],"engines":{"node":">= 8.0.0"},"ci":{"version":"8, 10"},"author":{"name":"dead_horse"},"license":"MIT","gitHead":"c753a384e4aea6f867938eb1f59121a480b589d3","bugs":{"url":"https://github.com/node-modules/cache-content-type/issues"},"homepage":"https://github.com/node-modules/cache-content-type#readme","_id":"cache-content-type@1.0.0","_npmVersion":"5.8.0","_nodeVersion":"8.11.1","_npmUser":{"name":"dead_horse","email":"dead_horse@qq.com"},"dist":{"shasum":"6ee4210bc51693af0736e8d41416c1eb771c3ffb","size":1054,"noattachment":false,"key":"/cache-content-type/-/cache-content-type-1.0.0.tgz","tarball":"http://name.csiicloud.com:7001/cache-content-type/download/cache-content-type-1.0.0.tgz"},"maintainers":[{"name":"dead_horse","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cache-content-type_1.0.0_1531296768754_0.9174562289955348"},"_hasShrinkwrap":false,"publish_time":1531296768833,"_cnpm_publish_time":1531296768833,"_cnpmcore_publish_time":"2021-12-14T02:20:10.992Z"}},"readme":"## cache-content-type\n\nThe same as [mime-types](https://github.com/jshttp/mime-types)'s contentType method, but with result cached.\n\n### Install\n\n```bash\nnpm i cache-content-type\n```\n\n### Usage\n\n```js\nconst getType = require('cache-content-type');\nconst contentType = getType('html');\nassert(contentType === 'text/html; charset=utf-8');\n```\n","_attachments":{},"homepage":"https://github.com/node-modules/cache-content-type#readme","bugs":{"url":"https://github.com/node-modules/cache-content-type/issues"},"license":"MIT"}