Research
Security News
Malicious PyPI Package ‘pycord-self’ Targets Discord Developers with Token Theft and Backdoor Exploit
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
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,651,383 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.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.
Security News
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.