key-locker
v0.2.1
Published
Locker
Downloads
53
Readme
key-locker
Locker
Install
$ npm install key-lockerUsage
const KeyLocker = require('key-locker');
const locker = keyLocker();
locker.add('test')
locker.has('test'))
// => true
// 1000ms later
locker.has('test'))
// => falseAPI
KeyLocker({ waitTime })
waitTime
Type: number
Default: 1000ms
refresh time.
Contributors
Thanks goes to these wonderful people (emoji key):
This project follows the all-contributors specification. Contributions of any kind welcome!
License
MIT © akameco
