1.0.4 • Published 2 years ago

simple-webserver-script-launcher v1.0.4

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

simpleWebServerScriptLauncher

Listen on a method//:ip:port/path and launch a script

Installation and use

npm i -g simple-webserver-script-launcher
simple-webserver-script-launcher

Configuration is done by environment variables

Here are how to use theses variables (with their default values)

ADDRESS=0.0.0.0 PORT=8888 METHOD=POST URL_PATH=runScript SCRIPT=script.sh simple-webserver-script-launcher

Adding multiple routes

It's possible to add new routes with the same 3 variables METHOD , URL_PATH and SCRIPT with a numbered suffix

METHOD_0=GET URL_PATH_0=runScript SCRIPT_0="echo 'ok'" simple-webserver-script-launcher
1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago