文件名称:Intercept:Node的流拦截器
文件大小:11KB
文件格式:ZIP
更新时间:2024-05-30 00:07:59
node tty streams intercept JavaScript
截距 流代理实用程序。 设置 const intercept = require ( 'stream-intercept' ) ; var unhook = intercept . write ( process . stdout , ( ... args ) => { return args [ 0 ] + new Date ( ) ; //appends the date after every line on console! °_°" } ) ; intercept . write ( process . stderr ) ; //all data are gathered by default in the _data property of the intercepted stream intercept . read ( process . stdin ) ; //_dat
【文件预览】:
Intercept-master
----package.json(1KB)
----npm-shrinkwrap.json(57B)
----LICENSE(11KB)
----intercept.js(3KB)
----stream-intercept-1.0.1-0.tgz(4KB)
----README.md(1KB)