
Security News
Next.js moves to scheduled security releases
Vercel is formalizing a monthly release program for Next.js. The change follows React2Shell and a sharp rise in AI-assisted vulnerability discovery.
rosid-handler-node
Advanced tools
A function that loads a JS file and transforms it to HTML by executing the exported default function.
npm install rosid-handler-node
const node = require('rosid-handler-node')
node('/src/index.js', '/src', '/dist', {}).then(({ data, savePath }) => {})
node('/src/index.html', '/src', '/dist', {}).then(({ data, savePath }) => {})
Add the following object to your rosidfile.json, rosidfile.js or routes array. rosid-handler-node will execute all matching JS files in your source folder and save the output as static HTML.
{
"name" : "Node",
"path" : "[^_]*.{html,js}*",
"handler" : "rosid-handler-node"
}
// index.js
export default () => '<h1>Hello World</h1>'
<!-- index.html (output) -->
<h1>Hello World</h1>
filePath {String} Absolute path to the requested file.srcPath {String} Absolute path to the source folder.distPath {?String} Absolute path to the export folder.route {Object} The route which matched the request URL.{Promise}({Object})
data {String | Buffer} The transformed file content.savePath {?String} Where to save the file when compiling.FAQs
Load JS and transform to HTML
The npm package rosid-handler-node receives a total of 2 weekly downloads. As such, rosid-handler-node popularity was classified as not popular.
We found that rosid-handler-node 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
Vercel is formalizing a monthly release program for Next.js. The change follows React2Shell and a sharp rise in AI-assisted vulnerability discovery.

Research
/Security News
11 malicious NuGet tools pose as game cheats to deploy Windows payloads, track hosts, and use Google Sheets for telemetry and control.

Research
/Security News
4 compromised asyncapi packages deliver miasma botnet loader on macOS, Linux and Windows.