use `get-stdin`

https://github.com/sindresorhus/get-stdin

I don't like boilerplate code