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):
akameco 💻 📖 |
---|
This project follows the all-contributors specification. Contributions of any kind welcome!
License
MIT © akameco