0.2.1 • Published 6 years ago

repl-over-http v0.2.1

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

REPL over HTTP(s)

Build Status Coverage Status

A repl tool over HTTP(s)

Use as a middleware

npm i repl-over-http

Click here for a full example.

const express = require('express')
const replOverHttp = require('repl-over-http')

const app = express()

const middleware = replOverHttp() // create a `function (req, res)` middleware

app.put('/repl', middleware)

app.listen(8081)

Use as a cli

npm i -g repl-over-http

repl-cli --uri http://your-repl-host

Screenshot

screenshot

note about curl

We can connect server with cmd curl -sNT. http://localhost:8081/repl.

But if reponse from server too large, curl will crash ~

How it works

refer Running a node.js REPL over curl

how-it-works

Security

For security reason, we only allow request from localhost by default. Custom with option preflight.

0.2.1

6 years ago

0.2.0

7 years ago

0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago