
Security News
RubyGems Adds Cooldown Feature to Bundler for Newly Published Gems
RubyGems and Bundler 4.0.13 introduced an opt-in cooldown feature that delays newly published gems during dependency resolution.
uwebsocket-serve
Advanced tools
Static file serving for uWebSockets.js http server.
import path from 'path';
import { App } from 'uWebSockets.js';
import { serveDir } from 'uwebsocket-serve';
const publicPath = path.resolve(__dirname, '../public');
const serveStatic = serveDir(publicPath);
App().get('/*', serveStatic);
const serveDir = (directoryPath: string) => (res: HttpResponse, req: HttpRequest) => void
Create a new middleware function to serve files from within a given root directory. The file to serve will be determined by combining req.getUrl() with provided directory.
When a file is not found sending a 404 response.
This module supports the Last-Modified HTTP header
This library is based on an example from a uWebSockets.js repository.
uwebsocket-serve is an MIT-licensed open source project. Feel free to fork and contribute.
FAQs
Static file serving for uWebSockets.js
The npm package uwebsocket-serve receives a total of 32 weekly downloads. As such, uwebsocket-serve popularity was classified as not popular.
We found that uwebsocket-serve 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
RubyGems and Bundler 4.0.13 introduced an opt-in cooldown feature that delays newly published gems during dependency resolution.

Security News
pnpm 11.5 now recognizes npm staged publish approvals in release metadata, preventing those releases from being mistaken for lower-trust package publishes.

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.