{"library":"static-cling","title":"Static Cling","type":"library","description":"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.","language":"javascript","status":"maintenance","last_verified":"Mon Apr 27","install":{"commands":["npm install static-cling"],"cli":{"name":"static-cling","version":null}},"imports":["const cling = require('static-cling'); cling();","require('static-cling')({ port: 8080, root: './public' });","static -p 4000 -d ./dist"],"auth":{"required":false,"env_vars":[]},"links":{"homepage":"http://kevinisom.info/Static-Cling/","github":"https://github.com/Kevnz/Static-Cling","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/static-cling","openapi_spec":null,"status_page":null,"smithery":null},"quickstart":{"code":"const cling = require('static-cling');\ncling({ port: process.env.PORT || 3000, root: './public', filename: 'index.html' });","lang":"javascript","description":"Shows how to start a static file server programmatically with custom port, root, and default file.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}