{"library":"debug","type":"library","category":null,"description":"The `debug` package is a lightweight and highly popular debugging utility designed for both Node.js and web browser environments. Currently stable at version `4.4.3`, it maintains a regular release cadence with frequent patch and minor updates addressing bug fixes and minor enhancements. Its core functionality revolves around providing a simple, namespace-based logging mechanism that allows developers to selectively enable or disable debug output for different parts of an application using the `DEBUG` environment variable (or `localStorage` in browsers). Key differentiators include its minimal footprint, automatic colorized output in supported terminals and browser developer tools, and the useful millisecond difference displayed between consecutive log calls, aiding in performance analysis. The project recently migrated its repository from `visionmedia/debug` to `debug-js/debug`. It is crucial to note that version `4.4.2` was compromised and users should upgrade immediately to `4.4.3` or later to avoid potential security risks.","language":"javascript","status":"active","version":"4.4.3","tags":["javascript","debug","log","debugger"],"last_verified":"Wed May 27","install":[{"cmd":"npm install debug","imports":["import debug from 'debug';","const createDebug = require('debug');\nconst debug = createDebug('my-namespace');","import debug from 'debug';\ndebug.enable('my-app:*');"]},{"cmd":"yarn add debug","imports":[]},{"cmd":"pnpm add debug","imports":[]}],"homepage":null,"github":"https://github.com/debug-js/debug","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/debug","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/debug/compatibility"}}