Skip to content

Instantly share code, notes, and snippets.

@sethbergman
Created February 14, 2018 09:42
Show Gist options
  • Save sethbergman/aa73f1660a8bce5cd588df515a96ce47 to your computer and use it in GitHub Desktop.
Save sethbergman/aa73f1660a8bce5cd588df515a96ce47 to your computer and use it in GitHub Desktop.
npx API
#!/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