Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
@stdlib/random
Advanced tools
Standard library generic random functions.
npm install @stdlib/random
var random = require( '@stdlib/random' );
Standard library generic random functions.
var rand = random;
// returns {...}
The namespace exports the following functions to sample and shuffle elements from an array:
sample( x[, options] )
: sample elements from an array-like object.shuffle( arr[, options] )
: shuffle elements of an array-like object.It also contains the following sub-namespaces:
var objectKeys = require( '@stdlib/utils/keys' );
var ns = require( '@stdlib/random' );
console.log( objectKeys( ns ) );
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.
See LICENSE.
Copyright © 2016-2021. The Stdlib Authors.
0.0.5 (2021-06-13)
No changes reported for this release.
</section> <!-- /.release --> <section class="release" id="v0.0.4">FAQs
Random numbers.
The npm package @stdlib/random receives a total of 14,551 weekly downloads. As such, @stdlib/random popularity was classified as popular.
We found that @stdlib/random 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
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.