Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
BREAKING(std/fs): remove writeFileStr and writeFileStrSync (denoland#…
…6847)

This removes the writeFileStr and writeFileStrSync functions which are
effectivly duplicates of Deno.writeTextFile and Deno.writeTextFileSync.
  • Loading branch information
caspervonb committed Jul 23, 2020
1 parent b573bbe commit 843b545
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 79 deletions.
14 changes: 0 additions & 14 deletions std/fs/README.md
Expand Up @@ -183,20 +183,6 @@ readFileStr("./target.dat", { encoding: "utf8" }); // returns a promise
readFileStrSync("./target.dat", { encoding: "utf8" }); // string
```

### writeFileStr

Write the string to file.

```ts
import {
writeFileStr,
writeFileStrSync,
} from "https://deno.land/std/fs/mod.ts";

writeFileStr("./target.dat", "file content"); // returns a promise
writeFileStrSync("./target.dat", "file content"); // void
```

### expandGlob

Expand the glob string from the specified `root` directory and yield each result
Expand Down
28 changes: 0 additions & 28 deletions std/fs/write_file_str.ts

This file was deleted.

37 changes: 0 additions & 37 deletions std/fs/write_file_str_test.ts

This file was deleted.

0 comments on commit 843b545

Please sign in to comment.