UUEncode Library for Javascript
JavaScript
Latest commit 49a8603 Jan 2, 2013 @teeterc added package.json
fixed bug in README
Permalink
Failed to load latest commit information.
bin initial commit Jan 2, 2013
lib initial commit Jan 2, 2013
tests initial commit Jan 2, 2013
README.md added package.json Jan 3, 2013
package.json added package.json Jan 3, 2013

README.md

js-uuencode

UUEncode Library for Javascript

Usage: Command line ./bin/uuencode input output ./bin/uudecode input ouput

Streams

var uuencode = require ('uuencode');
var fs = require ('fs');

var inFile = './data/test.raw';

function test(){
    data = "";
    var infs = fs.createReadStream(inFile)
    .on('open', function (){
        infs
        .pipe(new uuencode({encoder: true}))
        .on('data', function (d){
        })
        .pipe(new uuencode({decoder: true}))
        .on('data', function (d){
            data += d;
        })
        .on('end', function () {
            console.log(data);
        });
    })
    };

test();