is-debugging
v1.0.1
Published
Simply determines whether NodeJS is running with debugging.
Downloads
4
Readme
"Am I Debugging NodeJS?" in TypeScript
- Author: Jonathan M. Wilbur <[email protected]>
- Copyright Year: 2020
- License: MIT License
This package exports a single variable as the default export.
Use in TypeScript:
import isDebugging from "is-debugging";
if (isDebugging) {
console.log("Currently debugging NodeJS.");
}
Use in JavaScript:
const isDebugging = require("is-debugging").default;
if (isDebugging) {
console.log("Currently debugging NodeJS.");
}