
Security News
Federal Audit Finds NIST Wasted Funds With No Plan to Clear NVD Backlog
Federal audit finds NIST lacked a plan to clear the NVD backlog, wasted funds on duplicate work, and delayed use of CISA data.
@igosprojects/rivet
Advanced tools
Rivet is a small typescript based server platform for NodeJS, it is not a replacement of Express or other libraries but is a small remake.
To use Rivet you first need to install it using your package manager(look at Installing).
To create a basic server you will need to initilize Rivet, and start the server. The following code does just that:
import { IncomingMessage } from 'node:http';
import { Rivet, RivetResponse } from 'rivet';
const app = new Rivet();
// This function is called when the route "/" is called
app.get('/', (req: IncomingMessage, res: RivetResponse) => {
res.send("hi!");
});
app.start(3000);
Rivet supports serving static files and folders, to do so you can use the app.static function after initilizing the server.
For example this code will serve the public directory next to the file:
import { Rivet } from '../src/index';
const app = new Rivet();
app.static("/", "./public");
app.start(3000);
Rivet can read parameters passed on the URL bar, to do that you can use the req.params option for that.
To read the parameters you can do: const { paramname } = req.params;, now paramname is equal to the parameter if it was passed in.
To register routes with parameters you shouldnt register /users but instead /users/:id otherwise it wont work!
FAQs
Rivet is a small server framework for NodeJS
The npm package @igosprojects/rivet receives a total of 1,034 weekly downloads. As such, @igosprojects/rivet popularity was classified as popular.
We found that @igosprojects/rivet demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Federal audit finds NIST lacked a plan to clear the NVD backlog, wasted funds on duplicate work, and delayed use of CISA data.

Research
/Security News
A mini Shai-Hulud campaign compromised Red Hat Cloud Services npm packages to steal developer and CI/CD secrets during installation.

Research
/Security News
The North Korean malware loader hides in a Packagist-listed package and its GitHub branch to fetch and execute remote code in a likely Contagious Interview-style lure.