node package manager

mime-base64-stream

Stream data to base64 wrapped at 76 characters

MIME Base64 Stream

Travis CI Test Status

Transform content in to base64 wrapped at 76 characters for MIME emails

npm install mime-base64-stream

To use:

var mimeBase64Stream = require('mime-base64-stream');

content.pipe(mimeBase64Stream()).pipe(process.stdout);