Various bash utilities for starting servers.
npm install -g toolzTee the input to stdout and a file, without ansi escape codes.
Example:
some-command | toolz tee output.logGet an available port.
<ports> can be a single port, a range of ports, or a comma-separated list of ports.
Examples:
toolz port 8080
toolz port 8080-8090
toolz port 8080,8081,8082Wait for resources to become available. This is a wrapper around the wait-on package.
Example:
toolz wait file:./path/to/file.txt http://localhost:8080This is equivalent to:
wait-on file:./path/to/file.txt http://localhost:8080Run commands concurrently. This is a wrapper around the concurrently package.
Example:
toolz concur "npm run server" "npm run client"This is equivalent to:
concurrently "npm run server" "npm run client"