{"id":22282098,"url":"https://github.com/chasyumen/lite-web-server","last_synced_at":"2025-03-25T19:24:28.685Z","repository":{"id":41830557,"uuid":"411823044","full_name":"chasyumen/lite-web-server","owner":"chasyumen","description":"Simple web server","archived":false,"fork":false,"pushed_at":"2022-05-27T17:32:25.000Z","size":540,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-30T16:58:16.712Z","etag":null,"topics":["http","http-server","node-js","nodejs","nodejs-modules","webserver"],"latest_commit_sha":null,"homepage":"https://lite-web-server.js.org/","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/chasyumen.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-09-29T20:39:21.000Z","updated_at":"2021-11-13T21:39:28.000Z","dependencies_parsed_at":"2022-08-11T18:50:20.495Z","dependency_job_id":null,"html_url":"https://github.com/chasyumen/lite-web-server","commit_stats":null,"previous_names":[],"tags_count":24,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chasyumen%2Flite-web-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chasyumen%2Flite-web-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chasyumen%2Flite-web-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chasyumen%2Flite-web-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chasyumen","download_url":"https://codeload.github.com/chasyumen/lite-web-server/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245527515,"owners_count":20630035,"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":["http","http-server","node-js","nodejs","nodejs-modules","webserver"],"created_at":"2024-12-03T16:25:34.147Z","updated_at":"2025-03-25T19:24:23.669Z","avatar_url":"https://github.com/chasyumen.png","language":"JavaScript","readme":"# lite-web-server\n\n[![License](https://img.shields.io/npm/l/lite-web-server)](https://github.com/chasyumen/lite-web-server/blob/main/LICENSE) [![Total downloads on NPM](https://img.shields.io/npm/dt/lite-web-server)](https://npmjs.com/package/lite-web-server) [![Monthly commit activity](https://img.shields.io/github/commit-activity/m/chasyumen/lite-web-server)](https://github.com/chasyumen/lite-web-server) [![Node.js CI](https://github.com/chasyumen/lite-web-server/actions/workflows/node.js.yml/badge.svg)](https://github.com/chasyumen/lite-web-server/actions/workflows/node.js.yml)\n\nlite-web-server is a simple library for creating a web server.\n\nPlease support the developer by adding stars to the [Github Repository](https://github.com/chasyumen/lite-web-server).\n\n[Documantation](https://lite-web-server.js.org/)\n\n[Github](https://github.com/chasyumen/lite-web-server)\n\n[NPM](https://npmjs.com/package/lite-web-server)\n\n[Example Gist](https://gist.github.com/chasyumen/b96573602863354cedb2df963bbff425)\n\n\n## Installation\n```bash\nnpm i lite-web-server\n```\n\n## Example\n\nUsing `dir` option, you can specify the directory to load files from.\nBy default, the directory will be `./public/`.\n\n```js\nconst { WebServer } = require(\"lite-web-server\");\nconst server = new WebServer({\n  dir: \"./public_html/\" // `./public/` by default\n});\n\nserver.start();\n```\n\n\n## License\n© chasyumen 2021. Released under the MIT license\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchasyumen%2Flite-web-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchasyumen%2Flite-web-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchasyumen%2Flite-web-server/lists"}