axl-node-toolbox

1.0.6 • Public • Published

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

Package Sidebar

Install

npm i axl-node-toolbox

Weekly Downloads

3

Version

1.0.6

License

Apache-2.0

Unpacked Size

10.5 kB

Total Files

7

Last publish

Collaborators

  • axldns