key-locker
v0.2.1
Published
Locker
Downloads
42
Readme
key-locker
Locker
Install
$ npm install key-locker
Usage
const KeyLocker = require('key-locker');
const locker = keyLocker();
locker.add('test')
locker.has('test'))
// => true
// 1000ms later
locker.has('test'))
// => false
API
KeyLocker({ waitTime })
waitTime
Type: number
Default: 1000
ms
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