
Research
/Security News
Mini Shai-Hulud Campaign Hits Red Hat Cloud Services npm Packages
A mini Shai-Hulud campaign compromised Red Hat Cloud Services npm packages to steal developer and CI/CD secrets during installation.
@mattiash/http
Advanced tools
Opinionated http(s) server.
This module implements an http/https-server that behaves the way I think it should behave:
The module exports two functions, createHttpServer and createHttpsServer.
Takes a requestListener argument that is passed unmodified to node's http.createServer. Returns an an object that inherits from node's http.Server and extends it with the following two methods:
Starts listening for new connections. Takes the same arguments as http.Server.listen. Returns a promise that resolves with the result of http.Server.address() when the server is actually listening.
Closes the server as described above. Returns a promise that resolves when the server has stopped listening and all persistent connections have been closed.
Same as createHttpServer but for https.
import { createHttpServer } from '@mattiash/http'
let srv = createHttpServer((_req, res) => {
res.writeHead(200)
res.end('okay')
})
async function run() {
let address = await srv.listenAsync()
console.log(`Listening on port ${address.port}`)
process.on('SIGINT', async () => {
await srv.closeAsync()
console.log('Server has been shut down')
})
}
run()
FAQs
Opinionated http(s) 1 and 2 server
The npm package @mattiash/http receives a total of 1 weekly downloads. As such, @mattiash/http popularity was classified as not popular.
We found that @mattiash/http 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
A mini Shai-Hulud campaign compromised Red Hat Cloud Services npm packages to steal developer and CI/CD secrets during installation.

Research
/Security News
The North Korean malware loader hides in a Packagist-listed package and its GitHub branch to fetch and execute remote code in a likely Contagious Interview-style lure.

Security News
The Rust project is moving toward formal rules on LLM use in contributions after months of internal debate over maintainer burden, code quality, and contributor experience.