
Research
/Security News
Miasma Mini Shai-Hulud Hits ImmobiliareLabs npm Packages
Miasma Mini Shai-Hulud hits @immobiliarelabs Backstage plugins, targeting GitLab and LDAP auth packages on npm.
fastnoise-lite
Advanced tools
FastNoise Lite is an extremely portable open source noise generation library with a large selection of noise algorithms
• GitHub
FastNoise Lite is an extremely portable open source noise generation library with a large selection of noise algorithms. This library focuses on high performance while avoiding platform/language specific features, allowing for easy ports to as many possible languages.
To begin install the npm package fastnoise-lite with
Note FastNoise Lite does not support the node.js require(''); function. Instead, enable ES6 modules and import.
import FastNoiseLite from "fastnoise-lite";
let noise = new FastNoiseLite();
// Create and configure FastNoiseLite object
let noise = new FastNoiseLite();
noise.SetNoiseType(FastNoiseLite.NoiseType.OpenSimplex2);
// Gather noise data
let noiseData = [];
for (let x = 0; x < 128; x++) {
noiseData[x] = [];
for (let y = 0; y < 128; y++) {
noiseData[x][y] = noise.GetNoise(x,y);
}
}
// Do something with this data...
Since JavaScript does not support method overloading it has been simulated to make the user experience more continuous between language versions.
Some of the code has been changed to use switch statements since it provided a minor performance boost in some small frequently used places eg the _Hash methods.
Here is a template for the method overloading:
class FastNoiseLite {
/**
* JSdoc
*/
Method() {
let R2 = (Param1, Param2) => {
// do something 2D
}
let R3 = (Param1, Param2, Param3) => {
// do something 3D
}
if (arguments.lenght === 2) {
return R2(arguments[0], arguments[1]);
}
if (arguments.length === 3) {
return R3(arguments[0], arguments[1], arguments[2])
}
}
}
FAQs
FastNoise Lite is an extremely portable open source noise generation library with a large selection of noise algorithms
We found that fastnoise-lite 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.

Research
/Security News
Miasma Mini Shai-Hulud hits @immobiliarelabs Backstage plugins, targeting GitLab and LDAP auth packages on npm.

Security News
Rolldown paused Rust React Compiler integration after a 5MB binary size increase raised concerns about shipping React-specific code to all Vite users.

Security News
/Research
Mini Shai-Hulud expands into the Go ecosystem after hitting LeoPlatform npm packages and targeting GitHub Actions workflows.