Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Compute the bayer matrix for powers of two. Useful for ordered dithering algorithms.
Compute the bayer matrix 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 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 0 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 researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.