A minimal static file server for Node.js, version 2.0.3, providing both a command-line interface and programmatic usage. It serves files from a directory with optional custom port, root path, and default filename. Last updated in 2019, it has low maintenance cadence. Differentiators: extremely simple setup with no dependencies (pure Node.js http module), suitable for quick local development or demonstrations. Alternatives like http-server or serve offer more features and active maintenance.
npm install static-clingVerified import paths — ran on the pinned version, not inferred.
Shows how to start a static file server programmatically with custom port, root, and default file.
Use --global flag during npm install; check for conflicting binaries with 'which static'.
Consider alternatives like 'http-server' or 'serve' for active support.
Use reverse proxy (e.g., nginx) or switch to a feature-rich server.
npm install static-cling --save
npm install -g static-cling
No dependency data recorded yet.