Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
minitel-cloudflare-worker
Advanced tools
minitel-cloudflare-worker
[!NOTE] This is meant specifically for users of the
minitel-
ecosystem by me (immjs), and specifically for use with cloudflare workersIt can also be used by whomever needs to hook up MiniPAVI with a websocket based minitel server.
Opens up an HTTP(s) server for access through minipavi
[!NOTE] Unlike
minitel-minipavi
, the first argument tominitelFactory
is already a duplex stream which means you need to enable nodejs compat You may access the request using the second argument, for instance to access the PAVI argument if you setprovidePAVI: true
import { Minitel, TextNode } from 'minitel-standalone';
import { createMinipaviHandler } from 'minitel-cloudflare-worker';
export default createMinipaviHandler(
(stream) => {
const minitel = new Minitel(stream, {});
minitel.appendChild(new TextNode('Hello world!', {}, minitel));
minitel.renderToStream();
setTimeout(() => stream.end(), 10_000);
},
).then(() => console.log('MiniPavi handler ready!'));
createMinipaviHandler
FunctionA Promise that will resolve when the MiniPAVI handler will be up and running
Parameter | Type | Description |
---|---|---|
minitelFactory | (stream: Duplex) => any | A factory function to handle WebSocket connections. |
options | MinipaviHandlerOptions | Configuration options for the handler. |
Option | Type | Description |
---|---|---|
version | string | Optional. Specifies the version that will be given to MiniPAVI. Defaults to '1.0' . |
providePavi | boolean | Optional. If true, provides the PAVI field as query parameters. Defaults to false . |
provideDirectUrl | boolean | Optional. If true, provides the DIRECTURL field as query parameters. Defaults to false . |
FAQs
A cloudflare worker for access through MiniPAVI
We found that minitel-cloudflare-worker demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.