JonathanWilbur / is-debugging-ts

Simply determine if NodeJS is debugging (with TypeScript types)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

"Am I Debugging NodeJS?" in TypeScript

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.");
}

About

Simply determine if NodeJS is debugging (with TypeScript types)

License:MIT License


Languages

Language:Dockerfile 93.5%Language:TypeScript 6.5%