by Promarged · 8y ago · 0 comments
> node -e require('https').get('https://gist.githubusercontent.com/PurpleBooth/109311bb0361f..., b => b.on('data', c => process.stdout.write(c+'')))" > README.md
instead of plain curl seems weird to me.
> [...], try to remember the Unix Philosphy [sic] and break it down into tiny parts that go well together, this way it's going to be way easier to initially release it and maintain it in the future.
node -e "require('https').get(url, b => b.pipe(process.stdout)))" > README.md
rather than this: node -e require('https').get(url, b => b.on('data', c => process.stdout.write(c+'')))" > README.md
(and also that there's a typo with the quoting at the beginning).