Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Restarts a given node script until it fails.
JavaScript
Tag: v0.0.1

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
bin
test
Readme.md
package.json

Readme.md

race

Restarts a given node script until it fails.

Install

npm install race

Usage

Considering you have a script called script.js which throws an Error in 10% of all cases, this is how you can execute it over and over until it fails and then print the corresponding output:

race script.js
Something went wrong with that request. Please try again.