From eb089e7ccd81c0951e4901df20f6dbaa084af143 Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Fri, 13 May 2016 10:01:33 -0700 Subject: doc: add `added:` info for `string_decoder` PR-URL: https://github.com/nodejs/node/pull/6741 Ref: https://github.com/nodejs/node/issues/6578 Reviewed-By: Ben Noordhuis Reviewed-By: James M Snell Reviewed-By: Roman Klauke --- doc/api/string_decoder.md | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'doc/api/string_decoder.md') diff --git a/doc/api/string_decoder.md b/doc/api/string_decoder.md index f979e7dd37..06b97bab48 100644 --- a/doc/api/string_decoder.md +++ b/doc/api/string_decoder.md @@ -18,13 +18,22 @@ console.log(decoder.write(euro)); ``` ## Class: StringDecoder + Accepts a single argument, `encoding` which defaults to `'utf8'`. ### decoder.end() + Returns any trailing bytes that were left in the buffer. ### decoder.write(buffer) + Returns a decoded string. -- cgit v1.2.3