Socket
Socket
Sign inDemoInstall

grunt-restful-mock

Package Overview
Dependencies
156
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    grunt-restful-mock

A mock server returning random JSON from schema.


Version published
Weekly downloads
31
increased by181.82%
Maintainers
1
Install size
9.47 MB
Created
Weekly downloads
 

Readme

Source

grunt-restful-mock

logo.svg

模拟 AJAX 请求返回的 JSON 数据,减少前端工程师对后端接口的依赖,在接口规范的基础之上并行开发。

MIT License build:?

npm: downloads:? dependencies:?

特性

  • 基于数据模板生成随机数据
  • 自定义数据模板占位符
  • 支持 restful 接口
  • 支持 JSONP 请求
  • 模拟 HTTPOnly 的 Cookie
  • 模拟 HTTP 响应状态码,模拟请求超时,模拟网络延时
  • 热重启,修改 mock 配置后自动重启服务

使用

相关模块

历史

v0.2.1

  • 添加 logo.svg
  • 更新文档

v0.2.0

  • 重构,提取核心代码为独立的模块

v0.1.21

  • 增加自定义占位符接口
  • 组合谓词(get|post),参数修饰谓词(get[param1=value1]

Keywords

FAQs

Last updated on 03 Apr 2016

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc