dbug

WebJar for dbug

License

License

GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

dbug
Last Version

Last Version

0.4.2
Release Date

Release Date

Type

Type

jar
Description

Description

dbug
WebJar for dbug
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/seanmonstar/dbug

Download dbug

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/dbug/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>dbug</artifactId>
    <version>0.4.2</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/dbug/
implementation 'org.webjars.npm:dbug:0.4.2'
// https://jarcasting.com/artifacts/org.webjars.npm/dbug/
implementation ("org.webjars.npm:dbug:0.4.2")
'org.webjars.npm:dbug:jar:0.4.2'
<dependency org="org.webjars.npm" name="dbug" rev="0.4.2">
  <artifact name="dbug" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='dbug', version='0.4.2')
)
libraryDependencies += "org.webjars.npm" % "dbug" % "0.4.2"
[org.webjars.npm/dbug "0.4.2"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

dbug

Build Status NPM version

A drop-in replacement for debug, for slightly more utility.

var dbug = require('dbug')('foo:bar');

dbug('just like debug'); // except goes to stdout, not stderr
dbug(new Error('also like debug'));

// additional methods
dbug.info('info');
dbug.warn('warning');
dbug.error('red alert');

Just like debug, dbug won't do anything unless the DEBUG env variable matches the dbug logger, but with slightly more lenient matching.

DEBUG=*
DEBUG=foo,quux
DEBUG=foo // also acts as foo:*

A user script wanting to dynamically enable or disable can do it a couple ways:

require('dbug').env = 'foo,quux'; // just like ENV var
var foo = require('dbug')('foo');
foo.enabled = true;

Versions

Version
0.4.2