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

debuggler

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

debuggler

Resolves debug namespace like magic.

  • 1.0.0
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
662
decreased by-13.8%
Maintainers
1
Weekly downloads
 
Created
Source

debuggler

Build Status Code Climate Test Coverage

debuggler is a visionmedia/debug wrapper that is able to resolves it's caller path and package.json information, so it needs no configuration.

Install

$ npm install debuggler

Usage

/**
 * /home/example/package.json 
 *   name: example
 *   version: 1.0.0
 * /home/example/foo/bar.js
 */
process.env.DEBUG = 'example*';

const debug = require('debuggler')({ version: true });

debug('I know where I am!');
// Should output: example@1.0.0:foo:bar I know where I am!

API

ArgumentTypeDefault ValueDescription
optionsString|Object{}Debug namespace string or an options object.
options.namespaceStringundefinedNamespace is just passed to debug module, other options are ignored.
options.nameStringtrueProject name or true to get it from package.json.
options.versionString|BooleanfalseVersion string or true to get it from package.json.
options.verSeparatorString'@'Version separator character.
options.dirSeparatorString':'Directory separator character.
options.fileString|BooleantrueFile name or true to get the current one.
options.extString|BooleanfalseFile extension or true to get the current one.

License

Licence © Rodrigo Gomes da Silva

Keywords

FAQs

Package last updated on 18 Apr 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

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