You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: dist/README.md
+69Lines changed: 69 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -51,6 +51,71 @@ If no recognized module system is present, access bundle contents via the global
51
51
- Bundles are one of two namespace types: `flat` or `tree`. A `tree` namespace is a nested object namespace which mirrors the project's layout (e.g., `stdlib.math.base.special.erf`. A `flat` namespace uses the global alias [namespace][@stdlib/namespace], where each package has a unique alias (e.g., `stdlib.base.erf`). Which namespace is preferred depends on personal taste and application context.
52
52
- Each minified bundle has a corresponding [gzip][gzip]-compressed bundle. The [gzip][gzip] compression level for each compressed bundle is `9`, which is the highest (and most optimal) compression level. Deciding between uncompressed and compressed bundles depends on the application and whether compression is handled elsewhere in the application stack (e.g., [nginx][nginx], [CDN][cdn], _et cetera_).
53
53
54
+
55
+
### Bundles
56
+
57
+
#### Main
58
+
59
+
The main bundles, `stdlib-flat` and `stdlib-tree`, contain all packages except for
// If no recognized module system present, exposed to global scope:
71
+
var erf =stdlib.base.erf;
72
+
console.log( erf( 0.5 ) );
73
+
</script>
74
+
```
75
+
76
+
<divid="main-bundle">
77
+
78
+
</div>
79
+
80
+
#### Datasets
81
+
82
+
The dataset bundle, `stdlib-datasets-tree`, contains all datasets and exposes them as a `tree` namespace. Unless an application depends on these datasets, they should **not** be sourced, and, if needed, consider bundling only those datasets which are necessary.
// If no recognized module system present, exposed to global scope:
88
+
var datasets =stdlib_datasets.datasets;
89
+
console.log( datasets.AFINN_111 );
90
+
</script>
91
+
```
92
+
93
+
<divid="datasets-bundle">
94
+
95
+
</div>
96
+
97
+
#### REPL
98
+
99
+
The REPL bundle, `stdlib-repl`, contains all packages exposed via the project REPL and exposes a single `function` which attaches exports to a provided context.
0 commit comments