From bfc9a4e228b7f865c4cff113fb5c015ebc0e01cc Mon Sep 17 00:00:00 2001 From: Thai Pangsakulyanont Date: Mon, 19 Nov 2018 13:59:29 +0900 Subject: [PATCH] Document `encoding: null` (#158) --- readme.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/readme.md b/readme.md index 7b15c5716..83831ee99 100644 --- a/readme.md +++ b/readme.md @@ -240,10 +240,10 @@ Keep track of the spawned process and `kill` it when the parent process exits. #### encoding -Type: `string`
+Type: `string` `null`
Default: `utf8` -Specify the character encoding used to decode the `stdout` and `stderr` output. +Specify the character encoding used to decode the `stdout` and `stderr` output. If set to `null`, then `stdout` and `stderr` will be a `Buffer` instead of a string. #### timeout