Created
February 14, 2018 09:42
-
-
Save sethbergman/aa73f1660a8bce5cd588df515a96ce47 to your computer and use it in GitHub Desktop.
npx API
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
#!/usr/bin/env node | |
const https = require('https') | |
const url = 'https://raw.githubusercontent.com/js-n/awesome-npx/master/README.md' | |
https.get(url, (res) => { | |
res.pipe(process.stdout) | |
}) | |
.on('error', (e) => { | |
console.error(e) | |
process.exit(1) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment