Need private packages and team management tools?Check out npm Teams »

@hugojosefson/getsandbox-express

1.1.1 • Public • Published

@hugojosefson/getsandbox-express

A getsandbox.com to express adapter

Usage

as command-line tool, without installing

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

Alternatively, if you want to install it globally:

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

Default port is 8080.

as Node.js module

const sandbox = require('@hugojosefson/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}.`)
})

Keywords

none

Install

npm i @hugojosefson/getsandbox-express

DownloadsWeekly Downloads

0

Version

1.1.1

License

MIT

Unpacked Size

27.7 kB

Total Files

15

Last publish

Collaborators

  • avatar