npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

servez

v2.2.4

Published

A simple command line server to replace http-server

Downloads

6,348

Readme

npm GitHub Build Status

Illustration by Nomi, [@the_nomi, mail]

servez: a simple command-line http server

servez is a simple, zero-configuration command-line http server for development and learning. Note there is also an app version for those who prefer GUIs.

Installing globally:

!!!Note!!!: you need to install node.js. I recommend installing node via nvm(mac/linux) or nvm-windows(windows)

Installation via npm:

 npm install servez -g

This will install servez globally so you can run it from the command line.

Running on-demand:

Using npx you can run servez without installing it first:

 npx servez [options] [path]

Usage:

 servez [options] [path] 

[path] defaults to the current folder.

You can now visit http://localhost:8080

Available Options:

  • -h or --help for help

  • -p or --port Port to use (defaults to 8080) note if port is in use will use next available port

  • --version prints the version number

  • --scan scan forward until an open port is found. (defaults to true. --no-scan to disable)

  • --dirs Show folder listings (defaults to true, --no-dirs to disable)

  • --qr Show a QR code for the root url of the server. This might help for using servez with a phone.

  • --cors Include CORS headers (defaults to true, --no-cors to disable)

  • --local make serve only accessible from this machine. The default is to serve publicly. (0.0.0.0 vs 127.0.0.1)

  • --index Display index.html for folders if it exists (defaults to true, --no-index to disable)

  • --gzip serve somefile.gz in place of somefile

  • --brotli serve somefile.br in place of somefile

  • --unity-hack ignore .gz and .br when computing content type. (defaults to true, --no-unity-hack to disable)

  • --shared-array-buffers include headers 'Cross-Origin-Opener-Policy': 'same-origin' and 'Cross-Origin-Embedder-Policy': 'require-corp'.

  • --header=<name>:<value> extra headers to include eg --header=Content-Language:de-DE'

  • --robots Provide a /robots.txt if one does not exist. (defaults to true. --no-robots to disable)

  • --hidden Show files that start with .

  • --username Username for basic authentication

  • --password Password for basic authentication

  • -S or --ssl Use https (will use a fake cert if not specified)

  • -C or --cert Path to ssl cert file

  • -K or --key Path to ssl key file

Pronunciation

Cortez, Hernández, Gomez, Ramírez, and Servez walked into a bar...