mime2

0.0.11 • Public • Published

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.


Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.11
    1,070
    • latest
  • 0.0.7
    0
    • next

Version History

Package Sidebar

Install

npm i mime2

Weekly Downloads

897

Version

0.0.11

License

MIT

Unpacked Size

179 kB

Total Files

12

Last publish

Collaborators

  • song940