{"id":17963797,"url":"https://github.com/bramstein/nanoserver","last_synced_at":"2025-03-25T05:32:22.700Z","repository":{"id":57308015,"uuid":"84072547","full_name":"bramstein/nanoserver","owner":"bramstein","description":"A simple web server for development","archived":false,"fork":false,"pushed_at":"2017-03-06T13:11:34.000Z","size":5,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-19T09:14:22.752Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bramstein.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-03-06T12:49:41.000Z","updated_at":"2020-07-09T16:34:48.000Z","dependencies_parsed_at":"2022-09-12T11:44:27.917Z","dependency_job_id":null,"html_url":"https://github.com/bramstein/nanoserver","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bramstein%2Fnanoserver","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bramstein%2Fnanoserver/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bramstein%2Fnanoserver/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bramstein%2Fnanoserver/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bramstein","download_url":"https://codeload.github.com/bramstein/nanoserver/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245407667,"owners_count":20610231,"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":[],"created_at":"2024-10-29T11:45:18.594Z","updated_at":"2025-03-25T05:32:22.444Z","avatar_url":"https://github.com/bramstein.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Nanoserver\n\nSometimes you just need a tiny web server.\n\n## Usage\n\nInstall with npm:\n\n```\n$ npm install nanoserver\n```\n\nThen start a webserver where you need one:\n\n```\n$ cd MyProject/\n$ nanoserver\n\n\u003e Server listening on port 3000 with directory /Users/foo/Projects/MyProject\n```\n\nIf you really need it, you can customise the port nanoserver runs on with the `-p` option:\n\n```\n$ nanoserver -p 8080\n\u003e Server listening on port 8080 with directory /Users/foo/Projects/MyProject\n```\n\nNormally the nanoserver does not log anything. You can enable logging to the console with the `-l` option:\n\n```\n$ nanoserver -l\n\u003e Server listening on port 3000 with directory /Users/foo/Projects/MyProject\n\u003e GET: /index.html\n```\n\nIf you're doing performance testing (good on you!), you can use fake slow responses by appending the `?delay=\u003cmilliseconds\u003e` query parameter to URLs loaded from nanoserver.\n\nFor example, to delay loading an image by one second you would include it like this:\n\n```\n\u003cimg src=\"/images/my/funny.gif?delay=1000\"\u003e\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbramstein%2Fnanoserver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbramstein%2Fnanoserver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbramstein%2Fnanoserver/lists"}