
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
@scripty/server
Advanced tools
Setting up a node server for a website can be a pain. This express wrapper will install and preconfigure many dependencies with which you can run a one page application in react. Admittedly, not every use case is covered but that actually wasn´t the goal. The main goal was to keep it easy and clean.
Features:
npm install -s @scripty/server
import { Server, IndexController } from '@scripty/server';
const init = async () => {
let app = new Server();
await app.addController(new IndexController({ title: 'For title tag' }));
await app.addController(new ExampleController());
app.start(3000);
};
init().catch((err) => {
console.error(err.message);
});
export class ExampleController {
init(server, router) {
router.post('/create', this.createAction);
router.get('/read', this.readAction);
server.use(router);
}
createAction(req, res) {
res.json({example: 'foo'})
};
readAction(req, res) {
res.json({example: 'foo'})
};
}
if you want to access your static files you have to create following folders in your project:
project
│ README.md
│ file001.txt
│
└───public
│ │
│ │
│ │
│ └───images
│ │ │ image1.png
│ │ │ image2.jpg
│ │ │ ...
│ │
│ └───files
│ │ │ file1.txt
│ │ │ file2.zip
│ │ │ ...
You can access your files on server this way:
https://localhost:3000/files/file1.txt
https://localhost:3000/images/image1.png
FAQs
wrapper for express server.
We found that @scripty/server 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.