From 2f1fb6472a6858b5fc2d7780d5fd0d23fe3b5821 Mon Sep 17 00:00:00 2001 From: Roberts Slisans Date: Wed, 7 Jun 2023 17:23:00 +0300 Subject: [PATCH] add import example to docs page (#33) This helps because it's not obvious --- docs/index.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/index.md b/docs/index.md index baa88bb..0f6c8c9 100644 --- a/docs/index.md +++ b/docs/index.md @@ -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: