
Research
/Security News
DuckDB npm Account Compromised in Continuing Supply Chain Attack
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.
$ npm install bonera
app.use((req, res) => {
//create the middleware to use
})
req.params
req.query
req.body
app.get('/path', callback)
app.put('/path', callback)
app.patch('/path', callback)
app.post('/path', callback)
app.delete('/path', callback)
app.listen(port, callback)
const bonera = require('bonera');
const app = bonera();
//Create a middleware to display the respond as a JSON
app.use((req, res) => {
res.json = (val) => res.end(JSON.stringify(val));
});
app.get('/', (req, res) => {
console.log('Hello world');
});
//if the path is /user/?message=Hello-world
app.get('/greet', (req, res) => {
console.log(`The message ${req.query.message}`);
});
app.get('/user/:id', (req, res) => {
console.log(`The user id is ${req.params.id}`);
});
app.post('/user', (req, res) => {
console.log('A post has been made, use req.body to access to the data')
});
app.put('/user/:id', (req, res) => {
console.log('A put has been made, access to the params with req.params.id');
});
app.patch('/user/:id', (req, res) => {
console.log('A patch has been made, access to the params with req.params.id');
});
app.delete('/user/:id', (req, res) => {
console.log('A delete has been made, access to the params with req.params.id');
});
app.listen(8080, () => {
console.log('server running on port 8080')
})
FAQs
minimalist web framework for node.js
We found that bonera 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
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.
Security News
The MCP Steering Committee has launched the official MCP Registry in preview, a central hub for discovering and publishing MCP servers.
Product
Socket’s new Pull Request Stories give security teams clear visibility into dependency risks and outcomes across scanned pull requests.