Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

node-dev-console

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-dev-console

dev helper

  • 1.2.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

node-dev-console

API

activate()

  • returns boolean - always returns true

Activates console output

deactivate()

  • returns boolean - always returns false

Deactivates console output

isOn()

  • returns boolean - true, if output is set to true and FORCE_OFF is false

l(args)

  • args (any, required)

Alias for console.log, if output is enabled

j(d[, name[, LP]])

  • d (any, required) - any kind of variable
  • name (string | , optional) - name of the object
  • LP (string, optional) - Log prefix

Shows content of variable (JSON.stringify), with optional name and log prefix

t(d[, name[, LP]])

  • d (any, required) - any kind of variable
  • name (string | , optional) - name of the object
  • LP (string, optional) - Log prefix

Shows type of variable, with optional name and log prefix

r([name[, LP]])

  • name (string, optional) - name of the object
  • LP (string, optional) - Log prefix
  • returns rReturnFunction - undefined

Inner function of r. Returns passed variable

or(DEV, LIVE)

  • DEV (any, required)
  • LIVE (any, required)
  • returns any

isDEV()

  • returns boolean

isLIVE()

  • returns boolean

stringify(v)

  • v (any, required)
  • returns string - undefined

JSON.stringify with two spaces

showMessageIsOn()

console.log's a message, if output is "on"

reEvaluateEnv()

r1

  • type: rReturnFunction

Alias for r("STAGE1:")

r2

  • type: rReturnFunction

Alias for r("STAGE2:")

r3

  • type: rReturnFunction

Alias for r("STAGE3:")

r4

  • type: rReturnFunction

Alias for r("STAGE4:")

r5

  • type: rReturnFunction

Alias for r("STAGE5:")

FAQs

Package last updated on 06 Sep 2022

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc