jsRunner
a server to excute js code
install
npm i js-runner -g
npm i js-runner -g
usage
export interface Option {
dir?: string
plugins?: any[],
rules?: any[],
resolve?: any,
port?: number,
excutor?: string
[propName: string]: any
}
example
code
import JsRunner from 'js-runner'
new JsRunner({
port: '6666'
}).start()
cli usage
Usage: js-runner [options]
Options:
-V, --version output the version number
-r, --root <n> root directory, default: process.cwd()
-p, --port <n> listening port
-c, --config js.runner.config.js file
-h, --help output usage information