Skip to content

Commit 4d44399

Browse files
committed
Update README
1 parent 7f76b83 commit 4d44399

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ will cover most scenarios, this library focuses on the file system operations.
2121

2222
Example:
2323

24-
```
24+
```ts
2525
import { exists, find } from "@cross/fs/stat";
2626

2727
// Check if my/file exists
@@ -56,7 +56,7 @@ Methods:
5656

5757
Example:
5858

59-
```
59+
```ts
6060
import { readFile } from "@cross/fs/io";
6161

6262
console.log(await readFile("my/file"));
@@ -73,8 +73,8 @@ console.log(await readFile("my/file"));
7373

7474
Example:
7575

76-
```
77-
import { mktempdir, dirpath } from "@cross/fs/ops";
76+
```ts
77+
import { dirpath, mktempdir } from "@cross/fs/ops";
7878

7979
console.log(await mktempdir("my-prefix"));
8080
// -> /tmp/my-prefix-luaepc2x-74plp8j8tf7-gzaurxst88g

0 commit comments

Comments
 (0)