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

nor-debug

Package Overview
Dependencies
Maintainers
1
Versions
61
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nor-debug

Debug helpers for Node.js apps

latest
Source
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

nor-debug

Debug helpers for Node.js apps.

TODO

We use Trello board to organize development and keep track on things to do.

Installation

You can install the module from the NPM: npm install nor-debug

Get current line number

You can use debug.__line to get current line number for debugging purposes.

Get current stack

debug.__stack is used by debug.__line to get the current line number.

Development or production mode tests

You can test for development/production mode (NODE_ENV) with the debug.isProduction() and debug.isDevelopment() which will return boolean values, true or false.

Start the app using NODE_ENV=production node app.js for production mode.

Start the app using NODE_ENV=development node app.js for development mode.

Default is development mode.

Write debug log messages

You may use debug.log(msg, [msg2...]) to write debug messages. This function will only write log if the app is running in development mode. All non-string arguments will be converted to string with util.inspect().

Commercial Support

You can buy commercial support from Sendanor.

Keywords

debug

FAQs

Package last updated on 25 Nov 2018

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