Skip to content

Commit 3b07493

Browse files
committed
moved to esm + vite + vitest
1 parent bd28f6e commit 3b07493

17 files changed

+3119
-13681
lines changed

README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,18 @@ npm install ngraph.graph
1818
Or download from CDN:
1919

2020
``` html
21-
<script src='https://unpkg.com/ngraph.graph@20.0.1/dist/ngraph.graph.min.js'></script>
21+
<script src='https://unpkg.com/ngraph.graph@20.1.0/dist/ngraph.graph.umd.js'></script>
2222
```
2323

2424
If you download from CDN the library will be available under `createGraph` global name.
2525

26+
You can also import it as an ES module:
27+
28+
```js
29+
import createGraph from 'ngraph.graph';
30+
const g = createGraph();
31+
```
32+
2633
## Creating a graph
2734
Create a graph with no edges and no nodes:
2835

dist/ngraph.graph.es.js

Lines changed: 371 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/ngraph.graph.es.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)