nei-chrome-devtools

本地nei接口mock插件

nei-chrome-devtools

Extension stats

By: amibug
Users: 67
Version: 1.0.1 (Last updated: 2019-01-12)
Creation date: 2019-01-09
Risk impact: High risk impact
Risk likelihood:
Manifest version: 2
Permissions:
  • contextMenus
  • tabs
  • notifications
  • webRequest
  • webRequestBlocking
  • storage
  • http://*/*
  • https://*/*
Size: 701.44K

Other platforms

Not available on Android
Not available on Firefox
Not available on Edge
Want to check extension ranking and stats more quickly for other Chrome extensions? Install Chrome-Stats extension to view Chrome-Stats data as you browse the Chrome Web Store.

Extension summary

Nei Chrome插件

前端工程师在开发页面的时候,经常会碰到一个很实际的问题: 在后端接口还没开发完成时,前端怎么办? 通常有两种方案:

  1. 直接在代码中 mock 相应的数据。这种方案的缺点很明显,会引入无用的代码。
  2. 请求转发,利用nginx或者本地server(webpack-serve)将本地开会过程中调用的接口转发到nei线上服务。

方案二 看似完美,但是在实际使用过程中有配置成本层面的问题:

  1. 接口变更(新增、删除、修改)都需要更新转发路由表的配置文件
  2. 接口开始和关闭mock服务,配置比较繁琐,不够直观
  3. webpack-serve方式代理,在多人协助时git冲突不可避免

基于目前开发阶段前端工程师大多使用chrome调试的现状,将方案二中请求转发的逻辑迁移到浏览器中处理,并提供开启关闭接口mock的交互界面。

Extension safety

Risk impact

nei-chrome-devtools requires some sensitive permissions that could impact your browser and data security. Exercise caution before installing.

Risk likelihood

nei-chrome-devtools may not be trust-worthy. Avoid installing if possible unless you really trust this publisher.

Upgrade to see risk analysis details

Similar extensions

Here are some Chrome extensions that are similar to nei-chrome-devtools: