axl-node-toolbox
ultra light node utilities and snippets toolbox
js-doc provided
LocalHost
example one-liner to serve dir
await new LocalHost('test-host').setHostingDir('./public').run(8080);
- supports port-sets and port ranges
- integrated with graceLog
- utilizes node express, allows passing express static options
- instance returns - suitable for chaining
- open for extension, closed for modifications ;)
Ports
All you need to play with ports. Uses sockets for optimal performance
getFreePort
getFreePortFromSet
isPortFree
Various
-
cmd
- call / execute shell script by string and wait for result