repl-over-http

0.2.1 • Public • Published

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.

Package Sidebar

Install

npm i repl-over-http

Weekly Downloads

1

Version

0.2.1

License

MIT

Unpacked Size

96.9 kB

Total Files

12

Last publish

Collaborators

  • isayme