MCPcopy Create free account
hub / github.com/violentmonkey/violentmonkey / exec

Function exec

scripts/common.js:6–12  ·  view source on GitHub ↗
(cmd)

Source from the content-addressed store, hash-verified

4const isProd = process.env.NODE_ENV === 'production';
5
6function exec(cmd) {
7 try {
8 return childProcess.execSync(cmd, { encoding: 'utf8' }).trim();
9 } catch (e) {
10 // ignore
11 }
12}
13
14exports.isProd = isProd;
15exports.alias = {

Callers 2

listCommitsFunction · 0.90
action-helper.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected