{"id":13447701,"url":"https://github.com/ramlmn/serv","last_synced_at":"2025-03-22T01:31:13.290Z","repository":{"id":75029657,"uuid":"93313829","full_name":"ramlmn/serv","owner":"ramlmn","description":"💻 A development server for serving static files","archived":false,"fork":false,"pushed_at":"2020-10-13T16:16:27.000Z","size":354,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-14T02:49:20.040Z","etag":null,"topics":["cli","http","http-server","http2","https","server","static","tls"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ramlmn.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-06-04T13:02:53.000Z","updated_at":"2020-10-13T16:16:29.000Z","dependencies_parsed_at":null,"dependency_job_id":"c75d730e-8b78-4c41-a744-8a94cf119a92","html_url":"https://github.com/ramlmn/serv","commit_stats":{"total_commits":55,"total_committers":7,"mean_commits":7.857142857142857,"dds":0.4181818181818182,"last_synced_commit":"907783518e39e31e686e871a3b315fb0b35a6ac7"},"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ramlmn%2Fserv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ramlmn%2Fserv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ramlmn%2Fserv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ramlmn%2Fserv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ramlmn","download_url":"https://codeload.github.com/ramlmn/serv/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244893428,"owners_count":20527588,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","http","http-server","http2","https","server","static","tls"],"created_at":"2024-07-31T05:01:24.741Z","updated_at":"2025-03-22T01:31:13.284Z","avatar_url":"https://github.com/ramlmn.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"[![npm-badge](https://img.shields.io/npm/v/@ramlmn/serv.svg?\u0026style=flat-square)](https://www.npmjs.com/package/@ramlmn/serv)\n[![travis-badge](https://img.shields.io/travis/ramlmn/serv/master.svg?label=Travis\u0026style=flat-square)](https://travis-ci.org/ramlmn/serv)\n[![appveyor-badge](https://img.shields.io/appveyor/ci/r0mflip/serv.svg?label=AppVeyor\u0026style=flat-square)](https://ci.appveyor.com/project/r0mflip/serv)\n\n# serv\n\nStatic file server with https, http2 (recommened only for development)\n\n![terminal.png](snap/terminal.png)\n\n## Installation\n\n``` bash\n$ npm install --global @ramlmn/serv\n```\n\n\n## Usage\n\n```\n  serv - Static file server with https and http2\n\n  Usage\n    Serve current directory\n\n      $ serv\n\n    Listen on port 8080 with compression\n\n      $ serv --port 8080 --compress -d ./site/\n\n    Listen over https with directory listing (uses self-signed certificates)\n\n      $ serv --self-signed --listing\n\n    Use specific SSL certificate and private key\n\n      $ serv --ssl-cert ./cred.cert --ssl-key ./cred.key\n\n  Options\n    -h, --help             Shows this help text\n    -p, --port             Port to listen on (default $PORT or 5000)\n    -d, --dir              Path to directory\n    -l, --listing          Enable directory listing\n    -c, --compress         Enables compression (gzip)\n    -s, --ssl              Use self-signed certificates (enables TLS/SSL)\n    --ssl-cert             Path to SSL certificate file (enables TLS/SSL)\n    --ssl-key              Path to SSL private key file (enables TLS/SSL)\n    --http2                Use http2 (enables TLS/SSL)\n```\n\n**Note:** Currently no browser supports http2 without TLS, `--http2` currently is\nworthy only when TLS/SSL is enabled\n[(ref)](https://nodejs.org/api/http2.html#http2_server_side_example)\n\n\n## License\n\n[MIT](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Framlmn%2Fserv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Framlmn%2Fserv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Framlmn%2Fserv/lists"}