Skip to content

Commit 5b50b1c

Browse files
TrottMyles Borins
authored and
Myles Borins
committed
doc: add added: info for string_decoder
PR-URL: #6741 Ref: #6578 Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Roman Klauke <[email protected]>
1 parent 4474e83 commit 5b50b1c

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

doc/api/string_decoder.md

+9
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,22 @@ console.log(decoder.write(euro));
1818
```
1919

2020
## Class: StringDecoder
21+
<!-- YAML
22+
added: v0.1.99
23+
-->
2124

2225
Accepts a single argument, `encoding` which defaults to `'utf8'`.
2326

2427
### decoder.end()
28+
<!-- YAML
29+
added: v0.9.3
30+
-->
2531

2632
Returns any trailing bytes that were left in the buffer.
2733

2834
### decoder.write(buffer)
35+
<!-- YAML
36+
added: v0.1.99
37+
-->
2938

3039
Returns a decoded string.

0 commit comments

Comments
 (0)