Skip to content

Commit 8f059a0

Browse files
committed
Update README
1 parent 25ac672 commit 8f059a0

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

README.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,17 +63,18 @@ The `lazy-file/fs` export provides a `getFile(filename)` function that allows yo
6363
```ts
6464
import { getFile } from "@mjackson/lazy-file/fs";
6565

66-
// No data is read at this point, it's just a reference to a file on the local filesystem.
66+
// No data is read at this point, it's just a reference to a
67+
// file on the local filesystem.
6768
let file = getFile("./path/to/file.json");
6869

69-
// Data is read when you call file.text() (or any of the other Blob methods, like file.bytes(),
70-
// file.stream(), etc.)
70+
// Data is read when you call file.text() (or any of the
71+
// other Blob methods, like file.bytes(), file.stream(), etc.)
7172
let json = JSON.parse(await file.text());
7273

7374
let imageFile = getFile("./path/to/image.jpg");
7475

75-
// Get a LazyBlob that omits the first 100 bytes of the file. This could be useful for serving
76-
// HTTP Range requests.
76+
// Get a LazyBlob that omits the first 100 bytes of the file.
77+
// This could be useful for serving HTTP Range requests.
7778
let blob = imageFile.slice(100);
7879
```
7980

0 commit comments

Comments
 (0)