
Security News
The Hidden Blast Radius of the Axios Compromise
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.
@trinkets/noise
Advanced tools
Random number generators for texture generation.
Perlin noise is a procedural, gradient noise generator, developed by Ken Perlin.
Useful for generating numbers that can be used for generating, say, random terrain on a map that has some credible transition from one elevation based terrain type to another.
This implementation started with the code found in Building Up Perlin Noise by Andrew Kensler. The default code is modified from the vanilla implementation described in the blog post to include a "jitter" by default which makes 2d integer coordinates very likely not always return 0.
npm install @trinkets/noise
import {perlin, factories} from '@trinkets/noise'
// or import * as random from '@trinkets/noise'
// Generate some value at an x, y coordinate.
console.log(perlin(1, 3))
console.log(perlin(1.1, 3.1))
// Build a new perlin noise method, using a configuration different from the default.
import {random} from '@trinkets/random'
const perlin2 = factories.perlin({
// function() that, when called, returns an assumed random number between 0 and 1,
// per the definition of Math.random. Here we use the one from @trinkets/random.
random,
// Jitter offsets the zero of the surflet from integer values of x, y.
// False to turn off jitter (default is true).
jitter = false,
})
FAQs
more random number generators
We found that @trinkets/noise demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.