TimeMap:ES6 Map-Like实现,其键具有定义的时间寿命

时间:2024-05-21 23:05:07
【文件属性】:

文件名称:TimeMap:ES6 Map-Like实现,其键具有定义的时间寿命

文件大小:11KB

文件格式:ZIP

更新时间:2024-05-21 23:05:07

JavaScript

时间图 ECMAScript 6 Map-Like实现,其键具有定义的时间期限。 要求 v12或更高版本 入门 该软件包可在Node Package Repository中找到,并且可以通过或轻松安装。 $ npm i @slimio/timemap # or $ yarn add @slimio/timemap 用法示例 const { strictEqual } = require ( "assert" ) ; const TimeMap = require ( "@slimio/timemap" ) ; const col = new TimeMap ( 1000 ) ; col . on ( "expiration" , ( key , value ) => { console . log ( `col key ${ key } has expired!` ) ; }


【文件预览】:
TimeMap-master
----jsdoc.json(414B)
----.eslintrc(43B)
----commitlint.config.js(86B)
----src()
--------.gitkeep(0B)
----CONTRIBUTING.md(2KB)
----.travis.yml(238B)
----LICENSE(1KB)
----test()
--------test.js(4KB)
----README.md(5KB)
----index.d.ts(642B)
----.npmrc(19B)
----.editorconfig(147B)
----.gitignore(905B)
----slimio.toml(52B)
----index.js(7KB)
----.eslintignore(16B)
----package.json(2KB)

网友评论