0.2.1 • Published 6 years ago

key-locker v0.2.1

Weekly downloads
8
License
MIT
Repository
github
Last release
6 years ago

key-locker

Build Status Coverage Status tested with jest styled with prettier All Contributors

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: 1000ms

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