Security News
38% of CISOs Fear They’re Not Moving Fast Enough on AI
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
cache-content-type
Advanced tools
Create a full Content-Type header given a MIME type or extension and cache the result
The same as mime-types's contentType method, but with result cached.
npm i cache-content-type
import { getType } from 'cache-content-type';
const contentType = getType('html');
assert.equal(contentType, 'text/html; charset=utf-8');
2.0.0 (2024-06-08)
https://github.com/eggjs/egg/issues/5257
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->New Features
Added TypeScript support and enforced node prefix rules in ESLint configuration.
Documentation
Updated README with new badges and revised installation/usage instructions.
Chores
.gitignore
to include dist
directory and .tshy*
files.package.json
with new dependencies, scripts, and metadata.Tests
others
88c57c0
] - chore: support node 6 (dead-horse <dead_horse@qq.com>)features
ecb6476
] - feat: cache result of mimeTypes.contentType (dead-horse <dead_horse@qq.com>),fatal: No names found, cannot describe anything.others
FAQs
Create a full Content-Type header given a MIME type or extension and cache the result
The npm package cache-content-type receives a total of 1,803,228 weekly downloads. As such, cache-content-type popularity was classified as popular.
We found that cache-content-type demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.
Security News
Company News
Socket is joining TC54 to help develop standards for software supply chain security, contributing to the evolution of SBOMs, CycloneDX, and Package URL specifications.