stdlib

(★ 5,932)

✨ The fundamental numerical library for JavaScript and TypeScript. ✨

File Explorer

Showing a partial file list — download the zip above to see everything.

  • .clang-format
  • .codecov.yml
  • .commitlintrc.js
  • .czrc
  • .editorconfig
  • .eslintignore
  • .eslintrc.js
  • .gitattributes
  • .gitignore
  • .mailmap
  • .npmignore
  • .npmrc
  • .remarkignore
  • .rtlintrc
  • .travis.yml
  • azure-pipelines-disabled.yml
  • CHANGELOG.md
  • CITATION.cff
  • CODE_OF_CONDUCT.md
  • CONTRIBUTING.md
  • CONTRIBUTORS
  • CORE_CONTRIBUTORS.md
  • eslint.flat.config.js
  • FAQ.md
  • GOVERNANCE.md
  • LICENSE
  • Makefile
  • NOTICE
  • PRIVACY.md
  • README.md
  • ROADMAP.md
  • SECURITY.md
  • SUPPORT.md
  • TSC.md

# Installation Guide

node
Prerequisites

Setup Steps

git clone https://github.com/stdlib-js/stdlib.git

Clone the project source code.

npm install

Install project dependencies.

npm test

Run tests.

Key Commands

npm install

Install all required npm package dependencies for the project.

npm test

Run the test suite to verify package functionality.

make

Perform build and related tasks based on the Makefile.

You can use alternative package managers like yarn instead of npm.

# Use via CDN

jsDelivr

jsDelivr serves any public GitHub repository as a CDN with zero setup. Pick a version and a file to get a ready-to-paste link and snippet.

Showing a partial file list.

Release Timeline

Actively Maintained

Command Glossary

Commands referenced in this DOCs, explained below.

🔍

username

View Details ▼

Manage users.
Accessed in configuration mode.

username {{admin}} privilege 15 secret {{password}}

Set up an admin account:

🔍

deno

View Details ▼

A secure runtime for JavaScript, TypeScript, and WebAssembly.
Includes dependency management using `npm` or `jsr`, and tooling like bench, bundle, doc, and coverage.

deno

Start a REPL (interactive shell, also known as Read-Eval-Print Loop):

deno init sample && cd sample && deno test

Start a new project named sample and test it:

deno run {{path/to/file.ts}}

Run a file securely. It will ask (if needed) to allow net, read, etc:

🔍

git clone

View Details ▼

Clone an existing repository.

git clone {{remote_repository_location}} {{path/to/directory}}

Clone an existing repository into a new directory (the default directory is the repository name):

git clone --recursive {{remote_repository_location}}

Clone an existing repository and its submodules:

git clone {{[-n|--no-checkout]}} {{remote_repository_location}}

Clone only the `.git` directory of an existing repository:

🔍

npm install

View Details ▼

Install Node packages.

npm {{[i|install]}}

Install dependencies listed in `package.json`:

npm {{[i|install]}} {{package_name}}@{{version}}

Download a specific version of a package and add it to the list of dependencies in `package.json`:

npm {{[i|install]}} {{package_name}} {{[-D|--save-dev]}}

Download the latest version of a package and add it to the list of dev dependencies in `package.json`:

🔍

where

View Details ▼

Report all known instances of a command.
It could be an executable in the `$PATH` environment variable, an alias, or a shell builtin.

where {{command}}

Find all instances of a command:

tldr where-object

View the documentation of the equivalent PowerShell command:

where {{file_pattern}}

Display the location of file pattern:

🔍

script

View Details ▼

Record all terminal output to a typescript file.

script

Record a new session to a file named `typescript` in the current directory:

exit

Stop recording:

script {{path/to/session.out}}

Record a new session to a custom filepath:

// repository documentation