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

gengojs-debug

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gengojs-debug

The debugger console for gengo.js

  • 2.0.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
4
increased by100%
Maintainers
1
Weekly downloads
 
Created
Source

gengojs-debug

The debugger console for gengo.js

Usage

ES6
import debug from 'gengojs-debug';

debug(namespace:string).[level](args:*);
ES5
var debug = require('gengojs-debug');

debug(namespace:string).[level](args:*);

It's even possible to chain the methods:

/* Example */

debug('core')
	.warn('This is a warning')
	.error('This is an error!');

In terminal:

# In OSX, set the namespace and the debug level then run a file:
DEBUG=gengo.core:warn, node index.js

# In Windows, set the namespace and the debug level:
DEBUG=gengo.core:warn
# Run the file
node index.js

Namespaces

The available namespaces are:

  • core
  • parser
  • router
  • backend
  • api
  • localize
  • header

Levels

The available levels are:

  • debug
  • warn
  • error
  • info
  • verbose
  • silly

Note that you must prepend 'gengo' before the namespaces as you access the namespace with a '.' and then specify the debug level after appending a ':'.

Example:

DEBUG=gengo.parser:debug gengo.router:*

Keywords

FAQs

Package last updated on 30 Sep 2015

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