UNPKG

web-servo

Version:

Node HTTP web server that can execute node JS scripts

17 lines (11 loc) 489 B
//////////////////////////////////////////////////////////////////// // Example on how to use a script to launch a server //////////////////////////////////////////////////////////////////// // use require('web-servo') if you installed the module with npm require('../lib/web-servo') // set server dir to the script dir "/example/" .setDir(__dirname) // Load the config from default file "config.json" .config('config_https.json') // start the server .start();