Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
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,666,854 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
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.