MCPcopy Index your code
hub / github.com/nodejs/node / isEnabled

Function isEnabled

lib/internal/process/permission.js:19–25  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

17module.exports = ObjectFreeze({
18 __proto__: null,
19 isEnabled() {
20 if (_permission === undefined) {
21 const { getOptionValue } = require('internal/options');
22 _permission = getOptionValue('--permission') || getOptionValue('--permission-audit');
23 }
24 return _permission;
25 },
26 isAuditMode() {
27 if (_audit === undefined) {
28 const { getOptionValue } = require('internal/options');

Callers 1

inspectorOpenFunction · 0.50

Calls 2

getOptionValueFunction · 0.85
requireFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…