Skip to content

Commit 649fa54

Browse files
committed
update README
1 parent a65a684 commit 649fa54

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

README.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,12 @@ A Deno module helper class that wraps around [DataView](https://developer.mozill
55
## Usage
66

77
```typescript
8-
import BinaryReader from "binary_reader.ts;
8+
export { BinaryReader } from "https://deno.land/x/binary_reader@v0.1.0/mod.ts";
99

10-
let binaryReader = new BinaryReader(buffer);
11-
let data = binaryReader.readUint8();
10+
const filename = "some-file.bin";
11+
const file = Deno.openSync(filename);
12+
const buffer = Deno.readAllSync(file);
13+
Deno.close(file.rid);
14+
15+
const binaryReader = new BinaryReader(buffer);
1216
```

0 commit comments

Comments
 (0)