Neurotic Pumpkin Murderer

    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

    0

    Version

    0.0.3

    License

    BSD

    Last publish

    Collaborators

    • tcr