Last active
July 10, 2020 23:50
-
-
Save mateusvelleda/a6b27a93dbc1cb9c8170e39e4c1e699e to your computer and use it in GitHub Desktop.
Testing NPX
This file contains 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
{ | |
"name": "test-npx", | |
"private": false, | |
"version": "0.0.1", | |
"bin": "./testing-npx.js" | |
} |
This file contains 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
#!/usr/bin/env node | |
const { exec } = require('child_process'); | |
exec('echo "$(whoami), vamo caí pra Augusta?"', (err, stdout) => console.log(stdout)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment