data-navigator 1.2.2 → 1.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +29 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -40,15 +40,40 @@ npm install data-navigator
|
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
```js
|
|
43
|
-
// to use it in a .js
|
|
44
|
-
import { default as dataNavigator } from
|
|
45
|
-
|
|
43
|
+
// to use it in a .js file
|
|
44
|
+
import { default as dataNavigator } from "data-navigator"
|
|
45
|
+
import rendering from "./node_modules/data-navigator/dist/rendering"
|
|
46
|
+
|
|
47
|
+
// whole ecosystem
|
|
48
|
+
console.log("dataNavigator", dataNavigator)
|
|
49
|
+
|
|
50
|
+
// module within the ecosystem
|
|
51
|
+
console.log("dataNavigator.rendering", dataNavigator.rendering)
|
|
52
|
+
|
|
53
|
+
// just one module
|
|
54
|
+
console.log("rendering", rendering)
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
```ts
|
|
58
|
+
// to use it in a .ts file
|
|
59
|
+
import { default as dataNavigator } from "./node_modules/data-navigator/dist"
|
|
60
|
+
import rendering from "./node_modules/data-navigator/dist/rendering"
|
|
61
|
+
|
|
62
|
+
// whole ecosystem
|
|
63
|
+
console.log("dataNavigator", dataNavigator)
|
|
64
|
+
|
|
65
|
+
// module within the ecosystem
|
|
66
|
+
console.log("dataNavigator.rendering", dataNavigator.rendering)
|
|
67
|
+
|
|
68
|
+
// just one module
|
|
69
|
+
console.log("rendering", rendering)
|
|
46
70
|
```
|
|
47
71
|
|
|
48
72
|
```html
|
|
49
73
|
<!-- and even as a script tag module loaded from a cdn -->
|
|
50
74
|
<script type="module">
|
|
51
|
-
|
|
75
|
+
// pay attention to the version! the latest may be higher than this example
|
|
76
|
+
import dataNavigator from 'https://cdn.jsdelivr.net/npm/data-navigator@1.2.3/dist/index.mjs';
|
|
52
77
|
console.log(dataNavigator);
|
|
53
78
|
</script>
|
|
54
79
|
```
|