Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Nodecaf is an HTTP API framework running Express behind the scenes and providing some generally necessary functionality to speed up your development.
Docs for version v0.5.x.
Nodecaf is an HTTP API framework running Express behind the scenes and providing some generally necessary functionality to speed up your development. Aims to provide easy to write routing and server logic along with a useful seamless promise adapter for async functions on the routing system.
npm i -g nodecaf
.npm i nodecaf
.nodecaf init
.lib/main.js
const { AppServer } = require('nodecaf');
module.exports = function init(conf){
let app = new AppServer(conf);
// Expose things to all routes putting them on the 'shared' object.
let shared = {};
app.expose(shared);
app.route(({ post, get, del, head, patch, put }) => {
// Use express routes and a list of functions (async or regular no matter).
get('/foo/:f/bar/:b', Foo.read, Bar.read);
post('/foo/:f/bar', Foo.read, Bar.write);
// ...
});
// You can intercept all error that escape the route handlers.
app.on('error', function(req, res, err, send){
// Any error that is not handled here will just become a harmless 500.
});
// Perform your server initialization logic.
app.beforeStart = async function(){
};
// Perform your server finalization logic.
app.afterStop = async function(){
};
// Don't forget to return your app.
return app;
}
If you have found any problems with this module, please:
~bug
.We will make sure to take a look when time allows us.
If you wish to have that awesome feature or have any advice for us, please:
~proposal
.If you have spotted any enhancements to be made and is willing to get your hands dirty about it, fork us and submit your merge request so we can collaborate effectively.
[v0.5.2] - 2019-06-12
FAQs
Nodecaf is a light framework for developing RESTful Apps in a quick and convenient manner.
The npm package nodecaf receives a total of 567 weekly downloads. As such, nodecaf popularity was classified as not popular.
We found that nodecaf 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 researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.