文件名称:formatter-stream:使用预定义格式将对象转换为字符串的流
文件大小:3KB
文件格式:ZIP
更新时间:2024-07-05 15:25:28
JavaScript
格式化程序流 使用预定义格式将对象转换为字符串的流。 对流日志很有用。 安装 $ npm install formatter-stream --save 用法 var FormatterStream = require ( 'formatter-stream' ) ; var stream = new FormatterStream ( ':author wrote ":book"' ) ; stream . on ( 'data' , function ( data ) { data . toString ( ) === 'Arthur Conan Doyle wrote "Sherlock Holmes"' ; // true } ) ; stream . write ( { author : 'Arthur Conan Doyle' , book : 'Sherlock H
【文件预览】:
formatter-stream-master
----Readme.md(764B)
----test.js(1KB)
----.npmignore(8B)
----.gitignore(13B)
----index.js(939B)
----package.json(766B)