console-mirror

2.1.0 • Public • Published

console-mirror

Drop in fontend for apps without one! Mirrors the server-side console output to the client side.

Usage

  require('console-mirror')().listen();

Config

With an existing express server:

  let app = express();
  require('console-mirror')({ app });

To serve the console on a different path:

  // console will served at /console/
  require('console-mirror')({ clientPath: 'console' });

To serve the entire console on a sub-path:

  let app = express();
  // console will served at /console/
  app.use('/console', require('console-mirror')());

Readme

Keywords

none

Package Sidebar

Install

npm i console-mirror

Weekly Downloads

2

Version

2.1.0

License

ISC

Unpacked Size

17.7 kB

Total Files

13

Last publish

Collaborators

  • potch