文件名称:stream64:Base64 编码解码流
文件大小:3KB
文件格式:ZIP
更新时间:2024-06-20 11:46:40
JavaScript
流64 Base64 编码/解码流。 例子 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, ' ) // 'Hello,' -> SGVsbG8s s1 . push ( 'world\n' ) // ' world' -> IHdvcmxk s1 . push ( null )
【文件预览】:
stream64-master
----test.js(596B)
----package.json(818B)
----index.es6.js(1KB)
----UNLICENSE(1KB)
----.gitignore(24B)
----README.md(718B)