return empty string/buffer when `process.stdin.isTTY === false`

fixes #1