Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
@warren-bank/serve
Advanced tools
Readme
Static file serving and directory listing
symlinks
option is enabled (ex: serve --symlinks
), Windows shortcuts are processed in the same way as symbolic linksauth
option to restrict access using basic authenticationproxyMiddleware
option to rewrite the HTML DOM in responses for proxied redirectssymlinks
etag
auth
name
pass
proxyCookieJar
proxyMiddleware
engine
source
type
middleware
Function.prototype.toString()
terminal
middleware
function is only called for a proxied response when:
source
matches the URL of the redirected request
engine
determines the methodology that is used to match source
with the URL
flags
attribute can add regex modifiers (ex: "i")exact
attribute can add the requirement that the substring must match the entire URLtype
matches the generalized grouping of content-type values to which the data in the response is categorizedmiddleware
function is passed a single parameter, which depends upon the type
of response data
{response: data}
data
is the data structure obtained by parsing the JSON response{response: data}
data
is the raw text responsecgiBin
engine
source
command
env
command
is only executed for a requested file path when:
source
matches the absolute file path for a file that exists and will otherwise be served
rewrites
engine
determines the methodology that is used to match source
with the absolute file path
flags
attribute can add regex modifiers (ex: "i")exact
attribute can add the requirement that the substring must match the entire URLcommand
can be any command-line instruction that can execute and write a response to standard output
source
command
with values that are dynamically interpolated at runtime:
{{source}}
source
{{www-root}}
{{req-url}}
env
values that are dynamically interpolated at runtime:
{{serve-root}}
@warren-bank/serve
package
{{www-root}}
logReq
logRes
key
and value
attributes of each headervalue
attribute of each header to permit null
null
value is used to remove a specific response header from matching requestsserve-handler
and schemas
dependencies to use the modified versions (above)--cors
command-line option
reviver
function to reconstruct/rehydrate middleware
functions in the config object from JSON--force-https <listen_uri>
--ssl-cert
and --ssl-key
are used to --listen
on one or more secure endpoints--ssl
--ssl
option with (new) options: --ssl-cert
, --ssl-key
, and --ssl-pass
serve
to be manually configured to use any OpenSSL certificateserve
to use the OpenSSL certificate included in both the git repo and npm package
.etc/bin/https/cert
--delay
public
--config
--ssl-pass
--single
npm install --global "@warren-bank/serve"
serve <options>
FAQs
Static file serving and directory listing
The npm package @warren-bank/serve receives a total of 413 weekly downloads. As such, @warren-bank/serve popularity was classified as not popular.
We found that @warren-bank/serve demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.