Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
@voodoo.io/reloader
Advanced tools
Reloader
Minimalist, efficient and performance focused module to run a function at a specific interval.
/!\ This module use async/await syntax, this is why you must have node 7.6+.
Supported and tested : >= 14
Version | Supported | Tested |
---|---|---|
18.x | yes | yes |
16.x | yes | yes |
14.x | yes | yes |
12.x | no | yes |
10.x | no | yes |
9.x | no | yes |
8.x | no | yes |
>= 7.6 | no | yes |
$ npm install @voodoo.io/reloader --save
const ConfigManager = require('@voodoo.io/reloader')
const configManager = new ConfigManager()
// create a config function that should be run every 2 seconds
configManager.addFunction("config", async () => {
// my stuff to reload here ....
}, 2000)
await configManager.init()
If your function returns a result it's accessible through "get" method.
configManager.get('config')
// or
configManager.getAll()
Params | description | Default value |
---|---|---|
delay | Interval in ms between two check, only | 60000 (1min) |
one timer is used to check each function |
$ npm test
Coverage report can be found in coverage/.
FAQs
Simple module to run a function periodically.
We found that @voodoo.io/reloader demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.