UUEncode Library for Javascript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin
lib
tests
README.md
package.json

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();