
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.
@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.
The npm package @scripty/server receives a total of 2 weekly downloads. As such, @scripty/server popularity was classified as not popular.
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
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.