js-runner
run-js in
Last updated a year ago by anc95 .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install js-runner 
SYNC missed versions from official npm registry.

jsRunner

a server to excute js code

img codecov gif

install

// global
npm i js-runner -g
// local
npm i js-runner -g

feature

  • use webpack@4 to bundle code
  • read rules config and install dependencies automatically
  • hot reload

option

export interface Option {
    dir?: string
    // webpack plugin
    plugins?: any[],
    // webpack module
    rules?: any[],
    // webpack resolve
    resolve?: any,
    port?: number,
    // excutor function
    excutor?: string
    [propName: string]: any
}

example

code

import JsRunner from 'js-runner'

new JsRunner({
    port: '6666'
}).start()

cli usage

$ js-runner -h
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
$ code ./folder
$ js-runner

Current Tags

  • 1.0.4                                ...           latest (a year ago)

5 Versions

  • 1.0.4                                ...           a year ago
  • 1.0.3                                ...           a year ago
  • 1.0.2                                ...           a year ago
  • 1.0.1                                ...           a year ago
  • 1.0.0                                ...           a year ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 2
Dev Dependencies (12)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |