
Product
Introducing Repository Access Permissions and Custom Roles
Socket now supports Custom Roles and Repository Access Permissions so organizations can control who can access specific repositories and actions.
serve-like-a-pro
Advanced tools
A minimalistic connect based web server for serving static web-sites in
a production environment.
PORT env varBasically install and run the binary
npm install serve-like-a-pro --save
node_modules/.bin/serve-like-a-pro [dirname]
You can start the server programmatically from any other javascript file.
const serve = require('serve-like-a-pro');
const server = serve({
root: "./build",
port: process.env.PORT || 1234,
memoize: ["**/*.js", "**/*.css"],
cache: {
"**/*.js": 60 * 60 * 24 * 365
},
fallback: "404.html",
gzip: true
});
All code in this repository is released under the terms of the ISC license
Copyright (C) 2017 Nikolay Nemshilov
FAQs
A minimalistic production ready server for static sites
We found that serve-like-a-pro 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.

Product
Socket now supports Custom Roles and Repository Access Permissions so organizations can control who can access specific repositories and actions.

Product
Socket MCP now lets AI assistants review org alerts, investigate threats using the Socket threat feed, and inspect package files in addition to dependency scoring.

Product
Socket Firewall blocks malicious VS Code and Open VSX extensions before install, protecting developers from compromised editor marketplaces.