0.0.3 • Published 11 years ago

yenc-stream v0.0.3

Weekly downloads
5
License
-
Repository
github
Last release
11 years ago

yenc-stream

Encodes and decodes buffers and streams using yEnc.

npm install yenc-stream

Then:

var yencstream = require('yenc-stream');

var encodedBuffer = yencstream.encode(buffer)
var decodedBuffer = yencstream.decode(buffer)

fs.createReadStream('image.png')
  .pipe(yencstream.encodeStream()) // encode
  .pipe(asciiSafeStream)
  .pipe(yencstream.decodeStream()) // decode
  .pipe(fs.createWriteStream('same-image.png'));
0.0.3

11 years ago

0.0.2

11 years ago

0.0.1

11 years ago