You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP

mime2

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mime2

MIME in node.js

0.0.11
latest
80

Supply Chain Security

100

Vulnerability

85

Quality

76

Maintenance

100

License

AI-detected possible typosquat

Supply chain risk

There is a package with a similar name that is downloaded much more often.

Did you mean

mime

Version published
Weekly downloads
1.8K
40.74%
Maintainers
1
Weekly downloads
 
Created

mime2 mime2

MIME in node.js

Installation

$ npm i mime2

Example

const MIME = require('mime2');

var mime = new MIME();

mime.on('header', function(headers){
  console.log('headers', headers);
});

mime.on('body', function(body){
  console.log('body', body);
});

fs.createReadStream('mail.txt').pipe(mime);

Contributing

  • Fork this Repo first
  • Clone your Repo
  • Install dependencies by $ npm install
  • Checkout a feature branch
  • Feel free to add your features
  • Make sure your features are fully tested
  • Publish your local branch, Open a pull request
  • Enjoy hacking <3

MIT

This work is licensed under the MIT license.

Keywords

FAQs

Package last updated on 17 Sep 2021

Did you know?

Socket

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.

Install

Related posts