{"id":31702312,"url":"https://github.com/mysoul8012/local-web-test","last_synced_at":"2026-04-20T13:31:38.428Z","repository":{"id":107582339,"uuid":"145014590","full_name":"mySoul8012/local-web-test","owner":"mySoul8012","description":"一个基于node.js的快速本地搭建测试服务器 npm地址https://www.npmjs.com/package/local-web-test","archived":false,"fork":false,"pushed_at":"2018-08-18T19:38:38.000Z","size":907,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-06T02:42:03.137Z","etag":null,"topics":["nodejs","test","web","webserver"],"latest_commit_sha":null,"homepage":"https://mysoul8012.github.io/local-web-test/","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/mySoul8012.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2018-08-16T16:38:10.000Z","updated_at":"2018-08-20T10:58:35.000Z","dependencies_parsed_at":"2023-07-03T05:36:17.704Z","dependency_job_id":null,"html_url":"https://github.com/mySoul8012/local-web-test","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/mySoul8012/local-web-test","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mySoul8012%2Flocal-web-test","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mySoul8012%2Flocal-web-test/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mySoul8012%2Flocal-web-test/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mySoul8012%2Flocal-web-test/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mySoul8012","download_url":"https://codeload.github.com/mySoul8012/local-web-test/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mySoul8012%2Flocal-web-test/sbom","scorecard":{"id":670364,"data":{"date":"2025-08-11","repo":{"name":"github.com/mySoul8012/local-web-test","commit":"4046b26f84dc943a68516b4e3866bbd1768dddb5"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.6,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/10 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}}]},"last_synced_at":"2025-08-21T19:47:58.613Z","repository_id":107582339,"created_at":"2025-08-21T19:47:58.613Z","updated_at":"2025-08-21T19:47:58.613Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279000701,"owners_count":26082837,"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","status":"online","status_checked_at":"2025-10-08T02:00:06.501Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["nodejs","test","web","webserver"],"created_at":"2025-10-08T21:50:42.601Z","updated_at":"2025-10-08T21:50:47.044Z","avatar_url":"https://github.com/mySoul8012.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Chinese\n## local-web-test\n![local-web-test](https://img.shields.io/badge/local--web--test-1.0.0-green.svg)\n一个本地的基于node.js的测试服务器。\n支持快速的启动web容器服务。\n支持快速的发送get，post请求，并记录在/log（log 文件夹需要事先建立，在运行的根目录）文件夹下，并在控制台输出\n支持cors跨域请求。\n\n### Install\n```\nnpm install --save local-web-test\n```\n\n### Usage\n\n#### 创建本地静态服务器\n第一个参数为静态文件地址，第二个参数为端口号\neg;\n```\nvar test = require('local-web-test');\ntest.static('./', 3344);\n```\n\n#### 创建get请求\nget请求打印在控制台,并写入文件./log/data.js\n第一个参数为url，第二个参数为端口号\neg;\n```\nvar test = require('local-web-test');\ntest.get('./', 3344);\n```\n\n#### 创建post请求\n将post请求打印\n第一个参数为post地址，第二个参数为端口号,将会把读取的JSON数据输出在控制台，并写入文件中，文件路径为 ./log/data.json\neg\n```\nvar test = require('local-web-test');\ntest.post('./', 3344);\n```\n\n#### Cors\n##### 创建get Cors请求\nget请求打印在控制台,并写入文件./log/data.js\n第一个参数为get地址，第二个参数为端口号,将会把读取的JSON数据输出在控制台，并写入文件中，文件路径为log/data.json, 第三个参数为cors域名,默认支持发送cookice\neg:\n```\nvar test = require('local-web-test');\ntest.getCors('./', 3344, '*');\n```\n#### 创建post请求\n将post请求打印\n第一个参数为post地址，第二个参数为端口号,将会把读取的JSON数据输出在控制台，并写入文件中，文件路径为 ./log/data.json，第三个参数为cors域名\neg\n```\nvar test = require('local-web-test');\ntest.post('./', 3344, '*');\n```\n\n## 更新记录\n2018年08月17日 1.0.0 \n2018年08月17日 1.0.1\t增加英文文档（虽然是机翻的，并没有什么用处╮(╯▽╰)╭）\n2018年08月19日 1.0.2\t更改路径错误 添加测试用例\n2018年08月19日 1.0.3 更改错别字\n## 依赖\n该包依赖于body-parser cookie-parser express multer\n\n## 鸣谢\n没有人╮(╯▽╰)╭\n\n# English\n## local-web-test\n![local-web-test](https://img.shields.io/badge/local--web--test-1.0.0-green.svg)\na local node.js based test server\nSupport for fast startup web container services\nSupport fast send get, post request, and record in the /log (log folder needs to be established in advance, in the root directory of the run) folder, and output in the console\nSupport cors cross-domain request\n## Install\n```\nnpm install --save local-web-test\n```\n### Usage\n#### Create a local static server\nThe first parameter is the static file address, and the second parameter is the port number.\neg;\n```\nvar test = require('local-web-test');\ntest.static('./', 3344);\n```\n\n#### Create a get request\nThe get request is printed on the console and written to the file ./log/data.js\nThe first parameter is url and the second parameter is port number.\n\neg;\n```\nvar test = require('local-web-test');\ntest.get('./', 3344);\n```\n\n#### Create a post request\nPrint post request\nThe first parameter is the post address, and the second parameter is the port number. The read JSON data will be output to the console and written to the file. The file path is ./log/data.json\neg\n```\nvar test = require('local-web-test');\ntest.post('./', 3344);\n```\n\n#### Cors\n##### Create a get Cors request\nThe get request is printed on the console and written to the file ./log/data.js\nThe first parameter is the get address, and the second parameter is the port number. The read JSON data will be output to the console and written to the file. The file path is log/data.json, and the third parameter is cors. Domain name, default support for sending cookice\neg:\n```\nvar test = require('local-web-test');\ntest.getCors('./', 3344, '*');\n```\n#### Create a post request\nPrint post request\nThe first parameter is the post address, and the second parameter is the port number. The read JSON data will be output to the console and written to the file. The file path is ./log/data.json, the third parameter. Cors domain name\neg\n```\nvar test = require('local-web-test');\ntest.post('./', 3344, '*');\n```\n\n## update record\nAugust 17, 2018 1.0.0\nAugust 17, 2018 1.0.1 Adding English documents (although it is machine-turned, it has no use (╮)╭)\nAugust 19, 2018 1.0.2 Change path error Add test case\nAugust 19, 2018 1.0.3 Change typos\n\n## rely\nThis package depends on the body-parser cookie-parser express multer\n\n## Acknowledgement\nNo one is ╮(╯▽╰)╭","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmysoul8012%2Flocal-web-test","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmysoul8012%2Flocal-web-test","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmysoul8012%2Flocal-web-test/lists"}