UNPKG

dd-trace

Version:

Datadog APM tracing client for JavaScript

12 lines (9 loc) 249 B
const { execSync } = require('child_process') const sanitizedExec = (cmd, options = {}) => { try { return execSync(cmd, options).toString().replace(/(\r\n|\n|\r)/gm, '') } catch (e) { return '' } } module.exports = { sanitizedExec }