This is the GitHub repository of stdlib source code and documentation. For help developing stdlib, see the [development guide][stdlib-development].
150+ [special math functions][@stdlib/math/base/special].
35+ [probability distributions][@stdlib/stats/base/dists], with support for evaluating probability density functions (PDFs), cumulative distribution functions (CDFs), quantiles, moments, and more.
40+ [seedable pseudorandom number generators][@stdlib/random/base] (PRNGs).
200+ general [utilities][@stdlib/utils] for data transformation, functional programming, and asynchronous control flow.
200+ [assertion utilities][@stdlib/assert] for data validation and feature detection.
50+ [sample datasets][@stdlib/datasets] for testing and development.
A [plot API][@stdlib/plot/ctor] for data visualization and exploratory data analysis.
A [benchmark framework][@stdlib/bench/harness] supporting TAP.
REPL environment with integrated help and examples.
Can be bundled using [Browserify][browserify], [Webpack][webpack], and other bundlers for use in web browsers.
Running stdlib requires the following prerequisites:
> 2.7.0; if Node
< 1.0.0, version
< 4.0.0; if Node
< 6.0.0, version
>= 4.8; clang version
>= 3.5, Xcode version
>=8.3.1on OS X)
While not required to run stdlib, the following dependencies are required for automatically downloading external libraries:
The following external libraries can be automatically downloaded and compiled from source using
To install as a library or application dependency,
$ npm install @stdlib/stdlib
Once installed, stdlib packages can be individually required/imported to minimize load times and decrease bundle sizes. For example,
var dswap = require( '@stdlib/blas/base/dswap' );
To install globally for use as a command-line utility,
$ npm install -g @stdlib/stdlib
which will expose the
stdlib command. For example, to see available sub-commands
$ stdlib help
and to run the [REPL][@stdlib/repl]
$ stdlib repl
For distributable bundles for use in browser environments or as shared ("vendored") libraries in server environments, see the [
dist][stdlib-bundles] directory and associated [guide][stdlib-bundles].
Otherwise, to install as a system library, follow the [download][stdlib-development], [configuration][stdlib-development], and [installation][stdlib-development] instructions as described in the [development guide][stdlib-development].
See the [contributing guidelines][stdlib-contributing].
Copyright © 2016-2021. The Stdlib [Authors][stdlib-authors].
[![git tag][tag-image]][tag-url] [![NPM version][npm-image]][npm-url] [![Node.js version][node-image]][node-url]
|OS||Build (master)||Coverage (master)||Build (develop)||Coverage (develop)|
|Linux/OS X||[![Linux/OS X build status (master)][build-image-master]][build-url-master]||[![coverage (master)][coverage-image-master]][coverage-url-master]||[![Linux/OS X build status (develop)][build-image-develop]][build-url-develop]||[![coverage (develop)][coverage-image-develop]][coverage-url-develop]|
|Windows||[![Windows build status (master)][windows-build-image-master]][windows-build-url-master]||[![coverage (master)][coverage-image-master]][coverage-url-master]||[![Windows build status (develop)][windows-build-image-develop]][windows-build-url-develop]||[![coverage (develop)][coverage-image-develop]][coverage-url-develop]|
Test and build infrastructure is generously provided by the following services: