New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

express-repl

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

express-repl

Express Repl - routes, controller listing, access to app express variable

latest
npmnpm
Version
0.0.1
Version published
Maintainers
1
Created
Source

Express remote REPL

Remote REPL with infinite connection (can be used with supervisor)

Usage

In the app.js :

require('express-repl')(app);

Connect to repl :

./bin/repl

Commands :

app
routes

Example


var express = require('express')
  , http = require('http');

var app = express();

app.configure(function(){
  app.set('port', process.env.PORT || 3000);
});

app.get('/', function(req, res) {
    res.send('Ok');
});

// Activate remote repl
require('express-repl')(app);

http.createServer(app).listen(app.get('port'), function(){
  console.log("Express server listening on port " + app.get('port'));
});


FAQs

Package last updated on 02 Apr 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts