Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

yenc-stream

0.0.3 • Public • Published

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

Keywords

none

install

npm i yenc-stream

Downloadsweekly downloads

3

version

0.0.3

license

none

repository

githubgithub

last publish

collaborators

  • avatar