Installations
npm install bean-mock-api-service
Developer Guide
Typescript
No
Module System
CommonJS
Node Version
12.13.0
NPM Version
6.14.5
Score
63.9
Supply Chain
74.9
Quality
72.3
Maintenance
100
Vulnerability
80.6
License
Releases
Contributors
Unable to fetch Contributors
Languages
JavaScript (100%)
Developer
arthurlee
Download Statistics
Total Downloads
611
Last Day
2
Last Week
6
Last Month
15
Last Year
75
GitHub Statistics
4 Stars
26 Commits
3 Forks
2 Watching
1 Branches
1 Contributors
Package Meta Information
Latest Version
0.1.0
Package Id
bean-mock-api-service@0.1.0
Unpacked Size
21.50 kB
Size
8.43 kB
File Count
6
NPM Version
6.14.5
Node Version
12.13.0
Total Downloads
Cumulative downloads
Total Downloads
611
Last day
0%
2
Compared to previous day
Last week
200%
6
Compared to previous week
Last month
400%
15
Compared to previous month
Last year
-31.8%
75
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
bean-mock-api-service
Mock restful API service.
Getting Start
install
1npm install
start service
1node index.js [mock_files_path [listen_port]]
- mock_files_path: default is files in the current directory
- listen_port: default is 1492
test API
send request
1curl "http://127.0.0.1:1492/api/heartbeat"
response
1{ 2 "code": "0", 3 "message": "ok" 4}
stop service
Press CTRL+C to stop the nodejs process.
How to mock API data
GET API
GET http://127.0.0.1:1492/api/heartbeat => files_api_heartbeat_get.json
POST API
POST http://127.0.0.1:1492/api/user/create => files_api_user_create_post.json
Additional pseudo mechanism
GET http://127.0.0.1:1492/api/user?pseudo=1 => files_api_user_get_1.json
POST http://127.0.0.1:1492/api/course?pseudo=2 => files_api_course_post_2.json
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
- Info: project has a license file: LICENSE:0
- Info: FSF or OSI recognized license: GNU General Public License v2.0: LICENSE:0
Reason
no SAST tool detected
Details
- Warn: no pull requests merged into dev branch
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 0/26 approved changesets -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
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
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'master'
Reason
14 existing vulnerabilities detected
Details
- Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw
- Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275
- Warn: Project is vulnerable to: GHSA-gxpj-cx7g-858c
- Warn: Project is vulnerable to: GHSA-ww39-953v-wcq6
- Warn: Project is vulnerable to: GHSA-43f8-2h32-f4cj
- Warn: Project is vulnerable to: GHSA-9c47-m6qq-7p4h
- Warn: Project is vulnerable to: GHSA-29mw-wpgm-hmr9
- Warn: Project is vulnerable to: GHSA-35jh-r3h4-6jhm
- Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3
- Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h
- Warn: Project is vulnerable to: GHSA-hj48-42vr-x3v9
- Warn: Project is vulnerable to: GHSA-hrpp-h998-j3pp
- Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw
- Warn: Project is vulnerable to: GHSA-j8xg-fqg3-53r7
Score
1.7
/10
Last Scanned on 2025-01-27
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More