stream64
0.2.3 • Public • Published stream64
Base64 encode/decode stream.
Example
const Stream = require('stream')
const stream64 = require('stream64')
const stream = () => {
const s = new Stream.Readable()
s._read = () => {}
return s
}
const s1 = stream()
s1.pipe(stream64.encode()).pipe(process.stdout)
s1.push('Hello, ')
s1.push('world\n')
s1.push(null)
const s2 = stream()
s2.pipe(stream64.decode()).pipe(process.stdout)
s2.push('SGVsbG8sIHd')
s2.push('vcmxkIQo=')
s2.push(null)
Readme
Keywords
nonePackage Sidebar
Install
Weekly Downloads