Skip to content

Commit 9c818e6

Browse files
authored
chore: update src.md docs to add encoding parameter
1 parent 5c4c547 commit 9c818e6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: docs/api/src.md

+1
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ When an invalid glob is given in `globs`, throws an error with the message, "Inv
5555

5656
| name | type | default | note |
5757
|:--------:|:------:|------------|--------|
58+
| encoding | string<br />boolean | "utf8" | When false, file contents are treated as binary. When a string, this is used as the text encoding. |
5859
| buffer | boolean<br />function | true | When true, file contents are buffered into memory. If false, the Vinyl object's `contents` property will be a paused stream. It may not be possible to buffer the contents of large files.<br />**Note:** Plugins may not implement support for streaming contents. |
5960
| read | boolean<br />function | true | If false, files will be not be read and their Vinyl objects won't be writable to disk via `.dest()`. |
6061
| since | date<br />timestamp<br />function | | When set, only creates Vinyl objects for files modified since the specified time. |

0 commit comments

Comments
 (0)