jeffbski / wait-on

wait-on is a cross-platform command line utility and Node.js API which will wait for files, ports, sockets, and http(s) resources to become available
MIT License
1.87k stars 77 forks source link

`wait-on` CLI usage with config.js #139

Open Lonli-Lokli opened 1 year ago

Lonli-Lokli commented 1 year ago

Hi! I would likee to use custom function for validation but it is not clear what JS should be inside config

 validateStatus: function (status) {
    return status >= 200 && status < 300; // default if not provided
  }