
Security News
Browserslist-rs Gets Major Refactor, Cutting Binary Size by Over 1MB
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
@stdlib/stdlib
Advanced tools
Standard library for JavaScript.
Stdlib is a collection of robust, high performance libraries for numeric computing, streams, and more. This is the GitHub repository of stdlib source code and documentation. For stdlib development notes, see below.
Developing and running stdlib requires the following prerequisites:
>= 0.10
)> 2.7.0
; if Node < 1.0.0
, version > 2.7.0
and < 4.0.0
)While not required to run stdlib, the following dependencies may be required for testing, benchmarking, and general development:
>= 0.4
)>= 3.0.0
)>= 2.7
)>= 4.8
; clang version >= 3.5
, Xcode version >=4.4
on OS X)>= 4.8
)>= 3.4.3
)>= 1.18
)The following vendor libraries can be automatically downloaded and compiled from source using make
:
To acquire the source code, clone the git repository.
$ git clone https://github.com/stdlib-js/stdlib
If you are behind a firewall, you may need to use the https
protocol, rather than the git
protocol.
$ git config --global url."https://".insteadOf git://
Determine the absolute path of the lib/node_modules
directory within the repository. For example, from the repository directory
$ echo $(pwd)/lib/node_modules
/path/to/stdlib-js/stdlib/lib/node_modules
To allow development tools to resolve library packages, set the NODE_PATH
environment variable by adding the following line to the platform-specific configuration file for configuring user environments (e.g., .bash_profile
, .profile
, .bashrc
, or some other variant).
export NODE_PATH=/path/to/stdlib-js/stdlib/lib/node_modules
Once finished, you may need to reload the configuration file in existing shells. For example, in a bash shell,
$ source ~/.bash_profile
To install development dependencies,
$ make install
To install vendor dependencies,
$ make install-deps
To initialize the development environment,
$ make init
If you have previously downloaded stdlib using git clone
, you can update an existing source tree using git pull
.
$ cd ./path/to/stdlib
$ git pull
If you have initialized the development environment using make init
, updating the source tree will trigger hooks to ensure all development dependencies are up-to-date.
The stdlib source code is organized as follows:
bin executable binaries
deps vendor dependencies
docs top-level documentation
etc configuration files
examples top-level library examples
lib library source code
test top-level tests
tools development utilities
workshops workshops
Occasionally, new versions of external dependencies may cause conflicts with existing builds. Most of the time, running
$ make clean
$ make install
will be enough to resolve these conflicts. Otherwise, remove the git repository, clone, and reinstall.
See the contributing guidelines.
See LICENSE.
Copyright © 2016-2017. The Stdlib Authors.
OS | Build (master) | Coverage (master) | Build (develop) | Coverage (develop) |
---|---|---|---|---|
Linux/OS X | ||||
Windows |
FAQs
Standard library.
The npm package @stdlib/stdlib receives a total of 1,708 weekly downloads. As such, @stdlib/stdlib popularity was classified as popular.
We found that @stdlib/stdlib demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
Research
Security News
Eight new malicious Firefox extensions impersonate games, steal OAuth tokens, hijack sessions, and exploit browser permissions to spy on users.
Security News
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.