MIME in node.js
$ npm i mime2
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);
- 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
This work is licensed under the MIT license.