diff options
author | Casper Beyer <caspervonb@pm.me> | 2020-07-23 10:18:18 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-22 22:18:18 -0400 |
commit | fd900cfe215e919392941b39b57a16b4a9976eec (patch) | |
tree | 93f7a04e17a5a3492bb4202e620f0cb4e6f35a4e /std/fs/README.md | |
parent | 843b54549c04337f18c62d1daf159a79865de6b7 (diff) |
BREAKING(std/fs): remove readFileStr and readFileStrSync (#6848)
This removes the readFileStr and readFileStrSync functions which are
effectively duplicates of Deno.readTextFile and Deno.readTextFileSync.
Diffstat (limited to 'std/fs/README.md')
-rw-r--r-- | std/fs/README.md | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/std/fs/README.md b/std/fs/README.md index dd1692524..aad81acee 100644 --- a/std/fs/README.md +++ b/std/fs/README.md @@ -168,21 +168,6 @@ async function printFilesNames() { printFilesNames().then(() => console.log("Done!")); ``` -### readFileStr - -Read file and output it as a string. - -**ReadOptions** - -- encoding : The encoding to read file. lowercased. - -```ts -import { readFileStr, readFileStrSync } from "https://deno.land/std/fs/mod.ts"; - -readFileStr("./target.dat", { encoding: "utf8" }); // returns a promise -readFileStrSync("./target.dat", { encoding: "utf8" }); // string -``` - ### expandGlob Expand the glob string from the specified `root` directory and yield each result |