Socket
Socket
Sign inDemoInstall

mime2

Package Overview
Dependencies
0
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

mime2

MIME in node.js


Version published
Maintainers
1
Weekly downloads
1,371
increased by9.16%

Weekly downloads

Readme

Source

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

Last updated on 17 Sep 2021

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc