{"homepage":"http://fmsjs.org","name":"fms","version":"0.2.0","description":"前端数据模拟环境,提供 AJAX 模拟与后端 MVC 中 View 层渲染模拟解决方案。","main":"index.js","author":{"name":"nimojs","email":"nimo.jser@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/nimojs/fms.git"},"license":"MIT","dependencies":{"body-parser":"^1.12.3","chance":"latest","colors":"^1.1.0","connect-combo":"^0.2.7","cookie-parser":"^1.3.4","cors":"^2.7.1","each-async":"^1.1.1","express":"^4.13.3","express-http-proxy":"^0.11.0","extend":"^2.0.1","fs-extra":"^0.18.3","handlebars":"^3.0.3","highlight.js":"^8.6.0","iqrcode":"0.0.2","marked":"^0.3.3","mime":"^1.3.4","mockjs":"^1.0.0","readdir":"0.0.13","request":"^2.60.0","underscore":"^1.8.3"},"devDependencies":{"portfinder":"^0.4.0","supertest":"^1.1.0","should":"7.0.2"},"scripts":{"test":"mocha test/port.js","test1":"mocha test/connect.js","test2":"mocha test/port.js","test3":"mocha test/cookies-fms.js","test4":"mocha test/getHandle.js","test5":"mocha test/handle.js","test6":"mocha test/password.js","test7":"mocha test/port.js","test8":"mocha test/static.js","test9":"mocha test/static-2.js","test10":"mocha test/static-3.js","test11":"mocha test/ajax.settings.res.js","test12":"mocha test/restful.js","test13":"mocha test/ajax.js","test14":"mocha test/fms.get.js","test15":"mocha test/config.res-fms.get.js","test16":"mocha test/doc.js"},"engines":{"node":">= 4.0"},"gitHead":"07b4d07cfb0164df4dcb96a76ee851d81ff7526e","bugs":{"url":"https://github.com/nimojs/fms/issues"},"_id":"fms@0.2.0","_shasum":"0ed863fc9f201cbb81556a1c813417eeff53cad4","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.5.0","_npmUser":{"name":"nimojs","email":"nimo.jser@gmail.com"},"dist":{"shasum":"0ed863fc9f201cbb81556a1c813417eeff53cad4","tarball":"https://r2.cnpmjs.org/fms/-/fms-0.2.0.tgz","size":140351,"integrity":"sha512-+urI7M+7wBKzCFLydPWka989S4cdpnlhKfxTbHdaLF7erdU6zHOIGD5B535w2O5BhMnLteEe3YprjEuNcjQo5Q=="},"maintainers":[{"name":"nimojs","email":"nimo.jser@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/fms-0.2.0.tgz_1488348723014_0.9422413848806173"},"directories":{},"_cnpmcore_publish_time":"2021-12-21T22:59:35.286Z","readme":"# FMS \n> Front Mock Server | 前端数据模拟服务器\n\n[![Build Status](https://api.travis-ci.org/mobejs/mobe.svg)](https://travis-ci.org/mobejs/mobe)\n[![NPM version](https://img.shields.io/npm/v/fms.svg?style=flat)](https://npmjs.org/package/fms)\n[![NPM downloads](http://img.shields.io/npm/dm/fms.svg?style=flat)](https://npmjs.org/package/fms)\n\n\n在线文档\n在线示例\n\n## FMS 提供了一套解决方案\n前端基于 FMS 可以独立完成Web数据模拟(AJAX、后端模板引擎渲染页面)。\n\n> 基于 Node 的前后端分离成本太高,不适合小型团队。而 Mock Server 的前后端分离解决方案不需要改动后端框架,且上手简单会 AJAX 就会使用 FMS。\n\n## 功能\n- 模拟 AJAX\n- 模拟后端模板引擎渲染\n- 根据模拟代码生成文档\n\n## 亮点\n### JS语法配置模拟代码\n```js\nfms.ajax({\n type: 'get',\n url: '/demo/',\n res: {\n ok: 1,\n error: 0\n }\n})\n```\n\nhttp://demo.fmsjs.org/demo/\n\n### 自动生成数据文档\n
\n \nfms.ajax({\n type: 'get', \n title: '获取用户名',\n url: '/get_user/',\n request: {\n id: '2',\n _id: \"用户ID\"\n },\n res: {\n ok: {\n status: \"success\",\n username: \"fms\"\n },\n err: {\n status: \"error\",\n msg: \"请先登录\"\n }\n }\n})\n\n | \n \n \n | \n