stdio-test:Node.js控制台并输出模拟库

时间:2021-02-12 03:50:02
【文件属性】:
文件名称:stdio-test:Node.js控制台并输出模拟库
文件大小:74KB
文件格式:ZIP
更新时间:2021-02-12 03:50:02
TypeScript 标准IO测试 一个Node.js库,它模拟控制台和stdout进行测试。 开始使用 npm install --save-dev stdio-test 用法示例 模拟console.log const withConsoleLog = require ( "stdio-test" ) . withConsoleLog ; const stream = withConsoleLog ( ( ) => { process . stdout . write ( "some data" ) ; } ) ; // use stream.buffers to get buffers 模拟process.stdout.write const withStdoutWrite = require ( "stdio-test" ) . withStdoutWrite ; const stream
【文件预览】:
stdio-test-main
----.mocharc.json(102B)
----.eslintrc(693B)
----.nycrc.json(67B)
----src()
--------index.ts(130B)
--------console.ts(968B)
--------std.ts(1KB)
--------stream.ts(191B)
----tsconfig.json(514B)
----LICENSE(1KB)
----test()
--------std.spec.ts(3KB)
--------console.spec.ts(3KB)
----README.md(611B)
----.gitignore(109B)
----bin()
--------std.d.ts(468B)
--------console.js.map(810B)
--------stream.d.ts(189B)
--------std.js.map(1KB)
--------console.d.ts(475B)
--------stream.js.map(104B)
--------std.js(2KB)
--------stream.js(111B)
--------index.d.ts(129B)
--------index.js.map(176B)
--------console.js(2KB)
--------index.js(493B)
----.eslintignore(69B)
----package-lock.json(242KB)
----package.json(1KB)

网友评论