How to use debugnyan - 1 common examples

To help you get started, we’ve selected a few debugnyan examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ruimarinho / bitcoin-core / src / index.js View on Github external
constructor({
    agentOptions,
    headers = false,
    host = 'localhost',
    logger = debugnyan('bitcoin-core'),
    network = 'mainnet',
    password,
    port,
    ssl = false,
    timeout = 30000,
    username,
    version,
    wallet
  } = {}) {
    if (!_.has(networks, network)) {
      throw new Error(`Invalid network name "${network}"`, { network });
    }

    this.agentOptions = agentOptions;
    this.auth = (password || username) && { pass: password, user: username };
    this.hasNamedParametersSupport = false;

debugnyan

A logging library that combines the simplicity and convenience of debug with the power of bunyan

MIT
Latest version published 12 months ago

Package Health Score

55 / 100
Full package analysis

Popular debugnyan functions