Package Exports
- csb-inspector
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (csb-inspector) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
CSB-Inspector
It captures the impressions in the console produced by the action of the "console.log" or "console.error" function in the Application Server made in nodejs. This library is a help for the application developer on the server (BACKEND). There is a problem that at some point it is difficult to track the impressions on the console that we made at the time of development.
Also capturing the impressions in the console we emit in real time (SocketIo) to a display panel in the browser in the url 'http://localhost:{SERVER_PORT}/_console'
Currently the library can be integrated into Expressjs,
Install
npm i --save @adrianzelada/csb-inspectorOptions
options = {
// express application ,
app: app,
// Path where the application will be, by default it will be "_console" (Optional)
route: "_console",
// Port where our Socket will point, by default it will be 8888 (Optional)
port: 8888,
// This option receives the data from each screen impression and gives us the possibility of extending the functionalities (Optional)
outputs: [(path, prop, args)=>{
fs.appendFileSync("file.txt", path);
}]
}How to Apply
...
const express = require('express');
const app = express();
const CsbInspector = require('csb-inspector/express-socket');
.....
.....
.....
CsbInspector({
app: app
});
Csb-Inspector Browser
Open your browser and load 'http://localhost:{SERVER_PORT}/_console'
File Code "users-route.js"

View Csb-Inspector.

Impression on the console
CBS-Inspector displays these impressions on the console by adding the respective file name and code line where that impression was executed on the console.
File Code.

Your Console.
