Skip to content

Commit

Permalink
add import example to docs page (#33)
Browse files Browse the repository at this point in the history
This helps because it's not obvious
  • Loading branch information
rsxdalv authored Jun 7, 2023
1 parent 20e7291 commit 2f1fb64
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ yarn add npyjs

- Create a new npyjs object.
```javascript
import npyjs from "npyjs";
let n = new npyjs();
```
- This object can now be used load .npy files. Arrays are returned via a JavaScript callback, so usage looks like this:
Expand Down

0 comments on commit 2f1fb64

Please sign in to comment.