
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
@httpie/set
Advanced tools
An Array-aligned Set class and the one JavaScript should have shipped
Installation · Docs · Usage
Follow @eldorplus and @httpiejs for updates!
The @httpie/set package provides an improved Set implementation.
Array class instead of Map.map(callback), .filter(callback), .find(callback), .isEmpty(), and many more.deep equality and not referenceSet class JavaScript should have shippednpm i @httpie/set
Using @httpie/set is pretty straightforward. The package exports a Set class providing all methods to interact with the set.
const Set = require('@httpie/set')
const users = new Set()
users.isEmpty() // true
users
.add({ id: 1, name: 'Marcus' })
.add({ id: 2, name: 'Norman' })
.add({ id: 3, name: 'Christian' })
users.isNotEmpty() // true
const usernames = users.map(user => {
return user.name
})
// [ 'Marcus', 'Norman', 'Christian' ]
const marcus = users.find(user => {
return user.name === 'Marcus'
})
// { id: 1, name: 'Marcus' }
Do you miss a function? We very much appreciate your contribution! Please send in a pull request 😊
git checkout -b my-featuregit commit -am 'Add some feature'git push origin my-new-featureMIT © Httpie
httpiejs.com · GitHub @httpie · Twitter @httpiejs
FAQs
An Array-aligned Set class and the one JavaScript should have shipped
We found that @httpie/set 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
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.