Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Compute the bayer matrix based for powers of two. Useful for ordered dithering algorithms.
Compute the bayer matrix based for powers of two. Useful for ordered dithering algorithms.
npm install bayer
import bayer from "bayer";
const matrix = bayer();
// => [
// [0, 2],
// [3, 1],
// ];
Array.<Array>
Compute the bayer matrix based for powers of two.
Kind: global function
Returns: Array.<Array>
- A 2D array containing the matrix.
Param | Type | Default | Description |
---|---|---|---|
size | number | 2 | Needs to be a power of two otherwise will throw a "Maximum call stack size exceeded" Error. |
MIT. See license file.
FAQs
Compute the bayer matrix for powers of two. Useful for ordered dithering algorithms.
The npm package bayer receives a total of 5 weekly downloads. As such, bayer popularity was classified as not popular.
We found that bayer 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.