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.
ssl-serve
Advanced tools
Readme
During a re-write vercel removed the support for serve
's --ssl
flag.
However, a user named jwarby pointed
out that
version 6 still included it and was working fine. I noticed that version 6 had
vulnerabilities though, so I decided to fork v6 of vercel/serve to remove them.
I'm likely to maintain this this package as I'm planning on using it in my projects.
npm install -g ssl-serve
Once that's done, you can run this command inside your project's directory:
serve [options] <path>
Just use the --ssl
option. Make sure to accept the self-signed certificate
in your browser too.
Run this command to see a list of all available options:
serve help
If you set the --auth
flag, the package will look for a username and password
in the SERVE_USER
and SERVE_PASSWORD
environment variables.
As an example, this is how such a command could look like:
SERVE_USER=leo SERVE_PASSWORD=1234 serve --auth
You can also use the package inside your application. Just load it:
const serve = require('serve')
And call it with flags (run this command for the full list):
const server = serve(__dirname, {
port: 1337,
ignore: ['node_modules']
})
Later in the code, you can stop the server using this method:
server.stop()
I'm happy to merge contributor's PRs.
See License.
Leo Lamprecht (@notquiteleo) - Vercel Tim Daubenschuetz tim.daubenschuetz@gmail.com
FAQs
Static file serving and directory listing
The npm package ssl-serve receives a total of 366 weekly downloads. As such, ssl-serve popularity was classified as not popular.
We found that ssl-serve 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
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.