Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
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
The npm package minitel-cloudflare-worker receives a total of 3 weekly downloads. As such, minitel-cloudflare-worker popularity was classified as not popular.
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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.