toolz
v0.0.1
Published
Various bash utilities for starting servers
Readme
toolz
Various bash utilities for starting servers.
Installation
npm install -g toolzUsage
toolz tee <file>
Tee the input to stdout and a file, without ansi escape codes.
Example:
some-command | toolz tee output.logtoolz port <ports>
Get 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,8082toolz wait <resources...>
Wait 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:8080toolz concur <commands...>
Run 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"