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.
npm install js-fpm
This package support the fastcgi mode, so you may config a nginx serve to access fastcgi mode to this.
nginx configuration(in server)
location / {
root html;
index index.html index.htm;
try_files $uri @node;
}
location @node {
fastcgi_pass 127.0.0.1:3000;
fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
include fastcgi_params;
}
next to start:
var fpm = require("js-fpm")
fpm.run();
so, you may write so script in main.js.
fastcgi mode to serve the script(main.js)
session and cookie
file upload
etc...
var fpm = require("js-fpm")
var options = {
"mode" : "fastcgi", // or "http"
"port" : "3000", // or "80"
"ip" : "localhost", // or IP
"main" : require("path").resolve("./main.js")
}
fpm.run(options);
fastcgi or http fastcgi support the fastcgi protocol. http support the standard http protocol
port and ip
the execute file path
FAQs
A FastCGI Process Manager for NodeJS.
We found that js-fpm 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.
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.