timed-buffer

时间:2024-05-24 06:09:17
【文件属性】:

文件名称:timed-buffer

文件大小:4KB

文件格式:ZIP

更新时间:2024-05-24 06:09:17

JavaScript

定时缓冲区 NodeJS的缓冲区,可将您放入其中的所有内容保持一定的时间。 #笔记 目前尚未在npm上发布,我将在进一步测试后将其发布。 #用法 ## Instantiation TimedBuffer带有2个参数,一个以毫秒为单位的时间和一个可选的options对象。 var TimedBuffer = require ( './timed-buffer' ) , buffer = new TimedBuffer ( 1000 , { timePadding : 0 , //NUMBER Defaults to 0 defaultLength : 5 , //NUMBER Defaults to 2 sampleRateRetention : 25 //NUMBER Defaults to 50 } ) ; setInterval ( function (


【文件预览】:
timed-buffer-master
----timed-buffer.js(3KB)
----LICENSE(1KB)
----README.md(3KB)
----.editorconfig(415B)

网友评论