1.1.4 • Published 5 years ago

@jeanpereirarj/getsandbox-express v1.1.4

Weekly downloads
-
License
MIT
Repository
github
Last release
5 years ago

@jeanpereirarj/getsandbox-express

A getsandbox.com to express adapter

Usage

as command-line tool, without installing

npx @jeanpereirarj/getsandbox-express <main.js> [<port>]

Alternatively, if you want to install it globally:

npm install -g @jeanpereirarj/getsandbox-express
sandbox <main.js> [<port>]

Default port is 8080.

as Node.js module

const sandbox = require('@jeanpereirarj/getsandbox-express')
const express = require('express')

const app = express()
sandbox.loadSandbox(app, __dirname + '/mysandbox/main.js')

const port = 8080
app.listen(port, () => {
  console.log(`Sandbox listening on port ${port}.`)
})