
Security News
Crates.io Users Targeted by Phishing Emails
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
cgi-express
Advanced tools
[EXPERIMENTAL; Not tested well] Executes Express.js application as CGI program.
- Since this library is not tested well, please be HIGHLY CAREFUL with using this in production.
- This library may be uncompatible with some CGI executors.
@types/express
is necessary to build#!/usr/bin/env node
const express = require('express');
const cgiExpress = require('cgi-express');
const app = express();
// initialize 'app' as usual Express.js application here...
// call 'execute' with the default configuration
// (using process.stdout, process.stdin, and process.env)
cgiExpress.execute(app);
function execute(app: express.Application, opts?: Options): Promise<void>
Executes Express.js application as a CGI program. This function uses process.stdin
,
process.stdout
, and process.env
properties as default.
app
-- An Express.js application instanceopts
-- Additional options (Options
) for executionPromise object which resolves when execution finishes
function executeCore(app: express.Application, opts?: Options & Required<Pick<Options, 'stdin' | 'stdout' | 'env'>>): Promise<void>
Executes Express.js application as a CGI program, with custom stdin/stdout/env data.
app
-- An Express.js application instanceopts
-- Additional options (Options
) for execution (stdin/stdout/env are not omittable)Promise object which resolves when execution finishes
0.1.2
FAQs
Executes Express.js application as a CGI program
We found that cgi-express 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
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.