
Security News
Package Maintainers Call for Improvements to GitHub’s New npm Security Plan
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
A library for ES6 that extends the built-in Set
class to implement the missing fundamental methods such as map()
,
filter()
and reduce()
in addition to basic set methods such as union()
and isSubsetOf()
.
npm install superset --save
"use strict";
const SuperSet = require("superset");
const numbers = new SuperSet([1, 2, 3, 4, 5]);
const evenNumbers = numbers.filter(num => num % 2 === 0); // SuperSet { 2, 4 }
evenNumbers.isSubsetOf(numbers); // true
numbers.diff(evenNumbers); // SuperSet { 1, 3, 5 }
You can check out the docs or refer to the Array
methods on
MDN for further information. The code is also documented using JSDoc.
2.0.1
FAQs
A library that provides the missing Set methods such as map and filter.
The npm package superset receives a total of 628 weekly downloads. As such, superset popularity was classified as not popular.
We found that superset 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
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
Product
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.