debugger-attached
Advanced tools
Comparing version 1.0.0 to 2.0.0
"use strict"; | ||
function isDebuggerAttached() { | ||
return typeof v8debug === "object"; | ||
return typeof v8debug === "object" || /--debug|--inspect/.test( process.execArgv.join( " " ) ); | ||
} | ||
module.exports = isDebuggerAttached; |
{ | ||
"name": "debugger-attached", | ||
"version": "1.0.0", | ||
"version": "2.0.0", | ||
"description": "Checks if the Node debugger is attached", | ||
"main": "index.js", | ||
"scripts": { | ||
"test": "exit 0" | ||
"test": "node test" | ||
}, | ||
@@ -9,0 +9,0 @@ "repository": { |
Sorry, the diff of this file is not supported yet
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
37929
53
0
11