MCPcopy Create free account
hub / github.com/GoogleCloudPlatform/nodejs-docs-samples / execSync

Function execSync

translate/test/translate.test.js:21–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19const cp = require('child_process');
20
21const execSync = cmd => cp.execSync(cmd, {encoding: 'utf-8'}).trim();
22const cmd = 'node translate.js';
23const text = 'Hello world!';
24const text2 = 'Goodbye!';

Callers 1

translate.test.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected