
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.
node-app-starter
Advanced tools
This is simple API server
const app = require('node-app-starter');
app({
'GET /info' (req, res) {
return res.send('Hello world')
},
'POST /data' (req, res) {
return res.send('Data saved!')
}
});
If you are tired all the time coming to stackoverflow for create test http server. If you a wanna have the tool to create http server in 5 seconds. This package provide the simple and fast way to setup the node http server with simple routing and middlewares.
Go to the app directory and run the following command
$ npm i node-app-starter
Include the package to your application, for example in index.js
const app = require('node-app-starter');
Add the some endpoints to your application
app({
'POST /app' (req, res) {
return res.send({
message: 'Hello world'
});
},
});
And run your application
$ node index.js
Your application will be available on http://localhost:3001
const app = require('node-app-starter');
app({
'POST /app' (req, res) {
const out = {
message: 'Is POST request'
};
return res.send(out);
},
'GET /app' (req, res) {
const out = {
message: 'Is GET request'
};
return res.send(out);
}
});
const app = require('node-app-starter');
app({
'POST /app': [
(req, res, next) => {
next()
},
(req, res, next) => {
next();
},
(req, res, next) => {
next();
},
(req, res) => {
res.send('Hello world');
},
]
})
const app = require('node-app-starter');
app({
'POST /app' (req, res) {
const out = {
message: 'Hello world'
};
return res.send(out);
}
}, {
port: 2222
});
const { starter } = require('node-app-starter');
const Starter = new starter();
const app = Starter.app;
app.use();
Starter.import({
'POST /app' (req, res) {
const out = {
message: 'Hello world'
};
return res.send(out);
}
}, {
port: 2222
}).launch();
FAQs
Express wrapper, to faster creation the small node apps
We found that node-app-starter 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.