{"id":15647885,"url":"https://github.com/bubkoo/grunt-restful-mock","last_synced_at":"2025-04-30T13:40:38.054Z","repository":{"id":17301157,"uuid":"20071636","full_name":"bubkoo/grunt-restful-mock","owner":"bubkoo","description":"🚀 A mock server returning random JSON-data.","archived":false,"fork":false,"pushed_at":"2016-04-17T17:58:10.000Z","size":445,"stargazers_count":42,"open_issues_count":1,"forks_count":17,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-04-10T19:47:34.442Z","etag":null,"topics":["api","json","mock","restful"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/grunt-restful-mock","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/bubkoo.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":"2014-05-22T18:10:34.000Z","updated_at":"2023-09-08T16:47:48.000Z","dependencies_parsed_at":"2022-09-07T18:01:43.337Z","dependency_job_id":null,"html_url":"https://github.com/bubkoo/grunt-restful-mock","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bubkoo%2Fgrunt-restful-mock","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bubkoo%2Fgrunt-restful-mock/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bubkoo%2Fgrunt-restful-mock/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bubkoo%2Fgrunt-restful-mock/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bubkoo","download_url":"https://codeload.github.com/bubkoo/grunt-restful-mock/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251713223,"owners_count":21631505,"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":["api","json","mock","restful"],"created_at":"2024-10-03T12:21:49.539Z","updated_at":"2025-04-30T13:40:38.027Z","avatar_url":"https://github.com/bubkoo.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"![logo.svg](https://cdn.rawgit.com/bubkoo/grunt-restful-mock/master/logo.svg)\n\n\n\u003e 模拟 AJAX 请求返回的 JSON 数据，减少前端工程师对后端接口的依赖，在接口规范的基础之上并行开发。\n\n\n[![MIT License](https://img.shields.io/badge/license-MIT_License-green.svg?style=flat-square)](https://github.com/bubkoo/grunt-restful-mock/blob/master/LICENSE)\n[![npm:](https://img.shields.io/npm/v/grunt-restful-mock.svg?style=flat-square)](https://www.npmjs.com/packages/grunt-restful-mock)\n\n\n## 特性\n\n- 基于数据模板生成随机数据\n- 自定义数据模板占位符\n- 支持 restful 接口\n- 支持 JSONP 请求\n- 模拟 HTTPOnly 的 Cookie\n- 模拟 HTTP 响应状态码，模拟请求超时，模拟网络延时\n- 热重启，修改 mock 配置后自动重启服务\n\n\n## 使用\n\n - [开始使用](https://github.com/bubkoo/grunt-restful-mock/wiki/开始使用)\n - [使用示例](https://github.com/bubkoo/grunt-restful-mock/wiki/使用示例)\n - [数据模板语法规则](https://github.com/bubkoo/grunt-restful-mock/wiki/数据模板语法规则)\n - [内置占位符](https://github.com/bubkoo/grunt-restful-mock/wiki/内置占位符)\n\n\n## 相关模块\n\n- [restful-mock-server](https://github.com/bubkoo/restful-mock-server)\n- [generate-random-data](https://github.com/bubkoo/generate-random-data)\n- [json-from-template](https://github.com/bubkoo/json-from-template)\n\n## 历史\n\n### v0.2.1\n\n- 添加 `logo.svg`\n- 更新文档\n\n### v0.2.0\n- 重构，提取核心代码为独立的模块\n\n### v0.1.21\n- 增加自定义占位符接口\n- 组合谓词（`get|post`），参数修饰谓词（`get[param1=value1]`）\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbubkoo%2Fgrunt-restful-mock","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbubkoo%2Fgrunt-restful-mock","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbubkoo%2Fgrunt-restful-mock/lists"}