sindresorhus / get-stdin

Get stdin as a string or buffer
MIT License
337 stars 28 forks source link

DRY #35

Closed fisker closed 3 years ago

fisker commented 3 years ago

Come across the codebase, can't we DRY this with Buffer#toString()? I'm not sure if there will be performance loose, if it does, feel free to close.

sindresorhus commented 3 years ago

I don't remember why I didn't do this initially. The performance difference is probably negligible.