
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Polymorphic curried list lookup for functional style JS
Javascript isn't very consistent when it comes to lists. Native list processing functions only work with arrays, not with objects. Neverhtless, objects are being used as lists as often because of their amazing ability to provide non-numerical indexes to their elements. So, every time we want to find an element in an object-based collection (say, coming from an AJAX request), we have to write almost identical loops in order to perform that operations.
Poly-find works equally well with both arrays and objects so you never have to write those annoying loops again.
npm install poly-find
var find = require('poly-find');
var object = {
a: 100,
b: 200,
c: 300,
d: 400
};
var array = [100, 200, 300, 400];
function greaterThen100(number) {
return number > 100;
}
// Basic find
var result = find(greaterThen100, object);
// -> 200
result = find(greaterThen100, array);
// -> 200
// Pipeline-style usage
getDataAsPromise()
.then(find(greaterThen100))
.then(console.log)
// -> 200
FAQs
Polymorphic curried list lookup for functional style JS
The npm package poly-find receives a total of 0 weekly downloads. As such, poly-find popularity was classified as not popular.
We found that poly-find 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
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.