Security News
The Dark Side of Open Source
At Node Congress, Socket CEO Feross Aboukhadijeh uncovers the darker aspects of open source, where applications that rely heavily on third-party dependencies can be exploited in supply chain attacks.
repeat
Advanced tools
Readme
create repeating task chains
From NPM:
> npm i repeat
The following chain will execute all tasks every second. A task is any callable function.
// ES6
import { Chain } from 'repeat'
// ES5
// let { Chain } = require('repeat')
let chain = new Chain()
chain
.add(
// task A
() => console.log('how are you?'),
// task B
() => console.log('good')
// you can add task C, D, E, F ...
)
.every(1000)
The following methods are available on the chain.
// add any number of tasks to the chain
chain.add(
() => console.log('cat'),
() => console.log('dog'),
() => console.log('fish')
)
// execute the tasks once
chain.once()
// execute the tasks asynchronously every second
chain.every(1000)
// execute the tasks as fast as possible
chain.forever()
// halt further execution of tasks
chain.cancel()
Pull requests are encouraged. 😁
FAQs
create repeating task chains
The npm package repeat receives a total of 153 weekly downloads. As such, repeat popularity was classified as not popular.
We found that repeat demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
At Node Congress, Socket CEO Feross Aboukhadijeh uncovers the darker aspects of open source, where applications that rely heavily on third-party dependencies can be exploited in supply chain attacks.
Research
Security News
The Socket Research team found this npm package includes code for collecting sensitive developer information, including your operating system username, Git username, and Git email.
Security News
OpenJS is warning of social engineering takeovers targeting open source projects after receiving a credible attempt on the foundation.