{"id":28410615,"url":"https://github.com/ronffy/mockjs-server-cli","last_synced_at":"2026-04-29T00:02:18.447Z","repository":{"id":57300216,"uuid":"191864508","full_name":"ronffy/mockjs-server-cli","owner":"ronffy","description":"An express server that relies on mockjs to simulate the CLI of interface data","archived":false,"fork":false,"pushed_at":"2019-07-14T12:18:01.000Z","size":86,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-06-12T07:09:18.420Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ronffy.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2019-06-14T02:39:06.000Z","updated_at":"2019-07-14T12:18:03.000Z","dependencies_parsed_at":"2022-09-07T19:01:12.986Z","dependency_job_id":null,"html_url":"https://github.com/ronffy/mockjs-server-cli","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ronffy/mockjs-server-cli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ronffy%2Fmockjs-server-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ronffy%2Fmockjs-server-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ronffy%2Fmockjs-server-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ronffy%2Fmockjs-server-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ronffy","download_url":"https://codeload.github.com/ronffy/mockjs-server-cli/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ronffy%2Fmockjs-server-cli/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261197102,"owners_count":23123649,"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":"2025-06-02T12:06:59.462Z","updated_at":"2026-04-29T00:02:18.441Z","avatar_url":"https://github.com/ronffy.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mockjs-server-cli\n[![npm](https://img.shields.io/npm/v/mockjs-server-cli.svg)](https://www.npmjs.com/package/mockjs-server-cli)\n\nAn express server that relies on mockjs to simulate the CLI of interface data\n\n[View examples](https://github.com/ronffy/mockjs-server-cli/tree/master/exemple)\n\n## Install\n\n```shell\nnpm install mockjs-server-cli\n```\n\n## Usage\n\n### mode1\n\nYou can add mock.config.js to the project root directory  \n\nproject-root  \n```\n+ |- mock.config.js\n```\n\nRunning commands  \n```shell\nmockjs-server\n```\n\n### mode2\n\nYou can also place mock.config.js somewhere else, or change it to another name.  \n\nproject-root  \n```\n+ |- /config\n+   |- mock.config.js\n```\n\nRunning commands  \n```shell\nmockjs-server --port=8888 --config=config/mock.config.js\n```\n\n### options\n\n- `-p, --port`(default: `8888`) - server port\n- `--config`(default: `${cwd}/mock.config.js`) - path to the mock config file\n- `--delay` -  simulate http delay\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fronffy%2Fmockjs-server-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fronffy%2Fmockjs-server-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fronffy%2Fmockjs-server-cli/lists"}