Skip to content

Commit 3d9bded

Browse files
authored
update README
1 parent 649fa54 commit 3d9bded

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

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

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

1010
const filename = "some-file.bin";
1111
const file = Deno.openSync(filename);
1212
const buffer = Deno.readAllSync(file);
1313
Deno.close(file.rid);
1414

1515
const binaryReader = new BinaryReader(buffer);
16+
let data = binaryReader.readUint8();
1617
```

0 commit comments

Comments
 (0)