
Security News
The Hidden Blast Radius of the Axios Compromise
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.
serverbuilder
Advanced tools
It's a simple NodeJS/Express server builder allowing you to get a working server up in just a few lines.
To install it you need to run the following:
npm i serverbuilder
Note: Don't forget to use -g, --save, --save-dev if appropriate.
const app = require('express')(),
Server = require('serverbuilder');
const options = {
name: 'My Server',
publicIP: true
};
const server = new Server(app, process.env.PORT || 3e3, options);
server
.run()
.then(serv => app.set('port', serv.port), console.error);
const fs = require('fs'),
app = require('express')(),
Server = require('serverbuilder');
const options = {
name: 'My Server',
useHttps: true,
securityOptions: {
key: fs.readFileSync('server-key.pem'),
cert: fs.readFileSync('server-cert.pem')
},
publicIP: true
};
const server = new Server(app, process.env.PORT || 3e3, options);
server
.run()
.then(serv => app.set('port', serv.port), console.error);
const fs = require('fs'),
app = require('express')(),
Server = require('serverbuilder');
const options = {
name: 'My Server',
useHttp2: true,
securityOptions: {
key: fs.readFileSync('server-key.pem'),
cert: fs.readFileSync('server-cert.pem')
},
publicIP: true
};
const server = new Server(app, process.env.PORT || 3e3, options);
server
.run()
.then(serv => app.set('port', serv.port), console.error);
If you discover bugs, errors or/and have suggestions/feedback please create an issue or/and submit a PR.
If you want to contribute, make sure you stick with the coding style that ESLint is enforcing (cf. configuration file). To check if a file stick to the standards:
eslint -c ./config/.eslintrc.js yourFile.js
#Or `npm lint` if appropriate
To fix formatting errors and such, run:
Same as above but with --fix at the end.
Fore more details, please check the contribution guideline.
Thanks goes to these wonderful people (emoji key):
Maximilian Berkmann 🐛 💻 📖 🤔 💬 👀 🛡️ ⚠️ | Dependabot 🔧 | Semantic Release Bot 📖 📦 | Snyk bot 🛡️ |
This project follows the all-contributors specification. Contributions of any kind welcome!
MIT
FAQs
A simple NodeJS/Express server builder
We found that serverbuilder 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
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.