diff options
author | Rich Trott <rtrott@gmail.com> | 2016-05-13 20:01:33 +0300 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2016-05-16 08:56:51 +0300 |
commit | eb089e7ccd81c0951e4901df20f6dbaa084af143 (patch) | |
tree | a7b758adc28a554684e630a4ac751dd4637cb303 /doc/api/string_decoder.md | |
parent | d73e189c26bd3b25a586bcea7dee89163bcd58b4 (diff) |
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 <info@bnoordhuis.nl>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Roman Klauke <romaaan.git@gmail.com>
Diffstat (limited to 'doc/api/string_decoder.md')
-rw-r--r-- | doc/api/string_decoder.md | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/doc/api/string_decoder.md b/doc/api/string_decoder.md index f979e7dd37f..06b97bab489 100644 --- a/doc/api/string_decoder.md +++ b/doc/api/string_decoder.md @@ -18,13 +18,22 @@ console.log(decoder.write(euro)); ``` ## Class: StringDecoder +<!-- YAML +added: v0.1.99 +--> Accepts a single argument, `encoding` which defaults to `'utf8'`. ### decoder.end() +<!-- YAML +added: v0.9.3 +--> Returns any trailing bytes that were left in the buffer. ### decoder.write(buffer) +<!-- YAML +added: v0.1.99 +--> Returns a decoded string. |