PHP 8.2.30
Preview: production.js Size: 578 B
/proc/thread-self/root/home/byroehnu/.trash/node_modules11/@dabh/diagnostics/node/production.js

var create = require('../diagnostics');

/**
 * Create a new diagnostics logger.
 *
 * @param {String} namespace The namespace it should enable.
 * @param {Object} options Additional options.
 * @returns {Function} The logger.
 * @public
 */
var diagnostics = create(function prod(namespace, options) {
  options = options || {};
  options.namespace = namespace;
  options.prod = true;
  options.dev = false;

  if (!(options.force || prod.force)) return prod.nope(options);
  return prod.yep(options);
});

//
// Expose the diagnostics logger.
//
module.exports = diagnostics;

Directory Contents

Dirs: 0 × Files: 4

Name Size Perms Modified Actions
931 B lrw-r--r-- 2026-02-21 00:53:24
Edit Download
223 B lrw-r--r-- 2026-02-21 00:53:32
Edit Download
432 B lrw-r--r-- 2026-02-21 00:53:36
Edit Download
578 B lrw-r--r-- 2026-02-21 00:53:38
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).