{"id":26863028,"url":"https://github.com/jwill9999/static-server-for-running-tests","last_synced_at":"2026-04-29T19:31:48.362Z","repository":{"id":127600797,"uuid":"149829838","full_name":"jwill9999/static-server-for-running-tests","owner":"jwill9999","description":"Nodejs http server to serve static files when running tests.","archived":false,"fork":false,"pushed_at":"2018-09-23T18:48:51.000Z","size":29,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-06-24T13:11:03.590Z","etag":null,"topics":["api-documentation","api-wrapper","fs","html","http","http-server","nodejs","path","static-server","testing-tools"],"latest_commit_sha":null,"homepage":"","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/jwill9999.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2018-09-21T23:48:57.000Z","updated_at":"2018-09-23T18:48:39.000Z","dependencies_parsed_at":null,"dependency_job_id":"b8091d4d-6f3d-45cf-b653-fe7411bb52b1","html_url":"https://github.com/jwill9999/static-server-for-running-tests","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jwill9999/static-server-for-running-tests","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jwill9999%2Fstatic-server-for-running-tests","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jwill9999%2Fstatic-server-for-running-tests/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jwill9999%2Fstatic-server-for-running-tests/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jwill9999%2Fstatic-server-for-running-tests/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jwill9999","download_url":"https://codeload.github.com/jwill9999/static-server-for-running-tests/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jwill9999%2Fstatic-server-for-running-tests/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32440869,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T18:12:22.909Z","status":"ssl_error","status_checked_at":"2026-04-29T18:11:33.322Z","response_time":110,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["api-documentation","api-wrapper","fs","html","http","http-server","nodejs","path","static-server","testing-tools"],"created_at":"2025-03-31T02:39:24.693Z","updated_at":"2026-04-29T19:31:48.357Z","avatar_url":"https://github.com/jwill9999.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Testing Server\n\n\n## Description\n\nIf your running tests that require a server to serve static files, such as when using \"Puppeteer\" it often requires a degree of configuration. Testing Server provides an easy API to start and stop your server programatically. The server is configured to serve a number of static file types as illustrated below. If your serving an HTML file then this needs to be placed within a src folder.\n\nAlternatively you can run your server from the command line.\n\n```\n######## CLI ###############\n\n    node index.js 3000\n```\n\n\n```\n######### FILE PATH \u0026 PORT ############\n\n\u003e HTML File served from 'src' folder\n\n\u003e Default port 8080\n\n```\n\n\n\n### MIMETYPES AVAILABLE\n\n \u003e ico : image/x-icon\n\n \u003e html : text/html\n\n \u003e js : text/javascript\n\n \u003e json : application/json\n\n \u003e css : text/css\n\n \u003e png : image/png\n\n \u003e jpg : image/jpeg\n\n \u003e wav : 'audio/wav\n\n \u003e mp3 : audio/mpeg\n\n \u003e svg : image/svg+xml\n\n \u003e pdf : application/pdf\n\n \u003e doc : application/msword\n\n \u003e eot : appliaction/vnd.ms-fontobject\n\n \u003e ttf : aplication/font-sfnt\n\n\n ## API\n\n ``` \n  init() \u003e starts server port 8080\n\n  close() \u003e terminates running server \n\n ```\n\n ## API Example\n\n ```\n ###############   Example  ######################\n\n  const server = require('path_to_serverFile')\n\n  server.init()\n\n  server.close()\n\n ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjwill9999%2Fstatic-server-for-running-tests","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjwill9999%2Fstatic-server-for-running-tests","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjwill9999%2Fstatic-server-for-running-tests/lists"}