said
Run CLI commands and return output as string
install
npm install said
usage
const said =
capturing command output
// "v8.3.0" // "v5.6.0"
commands in conditionals
if
notes
- Runs synchronously
- Returns a trim string
- Buffers or other outputs convert to string
- Trims the output string before returning