@stdlib/namespace-aliases
Advanced tools
Weekly downloads
Readme
A list of standard library aliases.
npm install @stdlib/namespace-aliases
var aliases = require( '@stdlib/namespace-aliases' );
Returns a list of standard library aliases.
var list = aliases();
// returns [...]
To return a list of standard library aliases associated with a particular namespace, provide a namespace
filter.
var list = aliases( '@stdlib/math-base-special' );
// returns [...]
var discreteUniform = require( '@stdlib/random-base-discrete-uniform' );
var aliases = require( '@stdlib/namespace-aliases' );
var list;
var len;
var idx;
var i;
list = aliases();
len = list.length;
// Select random aliases from the list...
for ( i = 0; i < 100; i++ ) {
idx = discreteUniform( 0, len-1 );
console.log( list[ idx ] );
}
To use the module as a general utility, install the module globally
npm install -g @stdlib/namespace-aliases
Usage: stdlib-aliases [options] [<filter>]
Options:
-h, --help Print this message.
-V, --version Print the package version.
$ stdlib-aliases
The data files (databases) are licensed under an Open Data Commons Public Domain Dedication & License 1.0 and their contents are licensed under Creative Commons Zero v1.0 Universal. The software is licensed under Apache License, Version 2.0.
@stdlib/namespace/alias2pkg
: return the package name associated with a specified alias.@stdlib/namespace/alias2related
: return aliases related to a specified alias.@stdlib/namespace/pkg2alias
: return the alias associated with a specified package name.This package is part of stdlib, a standard library for JavaScript and Node.js, with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more.
For more information on the project, filing bug reports and feature requests, and guidance on how to develop stdlib, see the main project repository.
Copyright © 2016-2022. The Stdlib Authors.
FAQs
Standard library aliases.
The npm package @stdlib/namespace-aliases receives a total of 87 weekly downloads. As such, @stdlib/namespace-aliases popularity was classified as not popular.
We found that @stdlib/namespace-aliases demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?
Socket installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.