Common text operations for piped NodeJS streams.