
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
friendly-mimes
Advanced tools
Returns you friendly Human readable mime types
Resolves Mime type (eg: text/csv, application/mp4 etc) of the mime to the specific mime.
import { resolveMime } from 'friendly-mimes'
const item = resolveMime('application/mp4') // { "mime": "application/mp4", "name": "MPEG4", "fileType": ".mp4" }
console.log(item.name) //MPEG4
Resolves File type (.mp4, .mp3 etc) of the mime to the specific mime.
import { resolveFileType } from 'friendly-mimes'
const item = resolveFileType('.csv') // {"mime": "text/csv", "name": "Comma-Separated Values", "fileType": ".csv" }
console.log(item.mime) // text/csv
Resolves name of the mime to array of related mimes.
import { resolveName } from 'friendly-mimes'
const mimes = resolveName('MPEG-4 Audio') // Array of Mime Types related
console.log(mimes[0].mime)
If you see any data that is missing or incorrect, please be free to raise a PR to correct the same.
FAQs
Returns you friendly Human readable mime types
The npm package friendly-mimes receives a total of 1,492 weekly downloads. As such, friendly-mimes popularity was classified as popular.
We found that friendly-mimes demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.