From 4d44399a3201aebdf20558c060cbc9a11d765faf Mon Sep 17 00:00:00 2001 From: Hexagon Date: Thu, 28 Mar 2024 21:58:05 +0100 Subject: [PATCH] Update README --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 95b131f..4825330 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ will cover most scenarios, this library focuses on the file system operations. Example: -``` +```ts import { exists, find } from "@cross/fs/stat"; // Check if my/file exists @@ -56,7 +56,7 @@ Methods: Example: -``` +```ts import { readFile } from "@cross/fs/io"; console.log(await readFile("my/file")); @@ -73,8 +73,8 @@ console.log(await readFile("my/file")); Example: -``` -import { mktempdir, dirpath } from "@cross/fs/ops"; +```ts +import { dirpath, mktempdir } from "@cross/fs/ops"; console.log(await mktempdir("my-prefix")); // -> /tmp/my-prefix-luaepc2x-74plp8j8tf7-gzaurxst88g