Node stream which truncates input after N bytes