Created
August 5, 2022 19:04
-
-
Save hoogenm/f31dd9669652c04fef0b62e83395b80d to your computer and use it in GitHub Desktop.
exec for node.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const exec = (cmd) => console.log(require('child_process').execSync(cmd, { encoding: 'utf-8'})) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment