Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
A beautifully overloaded range function, allowing for resounding functionality. Uses lazy evaluation for inifinte ranges.
npm i rangz --save
const range = require("rangz");
range(30); // Range to 30
for(const i of range(30)) // How pythonic!
range({
start: 5,
end: 30,
step: 2
}); // [ 5, 7, 9, 11, 13, 15, 17, 19, 21, 23, 25, 27, 29 ]
range({
start: 1,
end: 1000,
step: i => i * 2
}); //[ 1, 2, 4, 8, 16, 32, 64, 128, 256, 512 ]
range(1, 2); // Infinite range inferred.
range(1, 2).take(20); // [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20 ]
range(2, 1).take(5); // [ 2, 1, 0, -1, -2 ]
range(2, 4, 8).take(10); // [ 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024 ]
range(8, 4, 2).take(10); // [ 8, 4, 2, 1, 0.5, 0.25, 0.125, 0.0625, 0.03125, 0.015625 ]
range(1, 2).get(1000000); // 1000001
FAQs
A beautifully overloaded range function, allowing for resounding functionality. Uses lazy evaluation for inifinte ranges.
We found that rangz 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
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.