
Research
Security News
Malicious npm Packages Target BSC and Ethereum to Drain Crypto Wallets
Socket uncovered four malicious npm packages that exfiltrate up to 85% of a victim’s Ethereum or BSC wallet using obfuscated JavaScript.
ampersand-collection-filterable
Advanced tools
Simple filterable ampersand collections
var filterable = require('../ampersand-collection-filterable'),
AmpersandCollection = require('ampersand-collection'),
AmpersandState = require('ampersand-state');
var Candy = AmpersandState.extend({
props: {
id: 'number',
name: 'string'
}
});
var CandyCollection = AmpersandCollection.extend(filterable, {model: Candy});
var bag = new CandyCollection([
{id: 1, name: 'Reese\'s Egg'},
{id: 2, name: 'Snickers'},
{id: 3, name: 'Three Musketeers'},
{id: 4, name: 'Milky Way'},
{id: 5, name: 'Twix'}
]);
bag.filter(function(candy){
return candy.name === 'Twix';
});
assert.equal(bag.length, 1);
bag.add({id: 6, name: 'Peppermint Patty'});
assert.equal(bag.length, 1);
bag.unfilter();
assert.equal(bag.length, 6);
npm install --save ampersand-collection-filterable
npm test
MIT
FAQs
Simple filterable ampersand collections
We found that ampersand-collection-filterable 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
Socket uncovered four malicious npm packages that exfiltrate up to 85% of a victim’s Ethereum or BSC wallet using obfuscated JavaScript.
Security News
TC39 advances 9 JavaScript proposals, including Array.fromAsync, Error.isError, and Explicit Resource Management, which are now headed into the ECMAScript spec.
Security News
Vite releases Rolldown-Vite, a Rust-based bundler preview offering faster builds and lower memory usage as a drop-in replacement for Vite.