Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
@allegiant/mime
Advanced tools
Readme
Simple mime type library. Can be used standalone or as a module for the allegiant app framework.
There be 🐲 here! The API and functionality are being cemented, anything before a 1.0.0 release is subject to change.
npm install @allegiant/mime --save
const Mime = require('@allegiant/mime');
var mime = new Mime();
// Alternatively; mime = new Mime('text/plain') to specify the expected default mime type returned on type queries
// Default mime type for unknown type queries
console.log("Default Mime Type: ", mime.type());
// mime.type Accepts file extensions with or without a '.'
console.log("Mime type for: .txt", "-", mime.type(".txt"));
console.log("Alternative extension: txt", "-", mime.type("txt"));
// Can be used to generate content-type headers with the encoding specified
console.log("Content-Type:", mime.type(".txt", 'utf8'));
// Find extensions for a known mime type
console.log("Known extensions for Mime Type: 'text/html' =", mime.ext("text/html"));
// Unknown mime types always return '' for an extension query
console.log("Extensions for Unknown Mime Type: 'unknowntype' = '" + mime.ext("unknowntype") + "'");
Copyright © 2017 Allegiant. Distributed under the terms of the MIT License, see LICENSE
FAQs
Simple mime library.
The npm package @allegiant/mime receives a total of 5 weekly downloads. As such, @allegiant/mime popularity was classified as not popular.
We found that @allegiant/mime demonstrated a not healthy version release cadence and project activity because the last version was released 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.