1.0.1 • Published 5 years ago

doclever2api v1.0.1

Weekly downloads
-
License
ISC
Repository
-
Last release
5 years ago

这是一个把doclever 的文档转换为特定格式的工具,只是自己内部用的小工具

使用方法

npm i doclever2api
const fs = require('fs')
const doclever2api = require('doclever2api')

// 或者
// 1.在 doclerver 中下载项目的json文件
const apijson = require('./WMS-2.json')
const doclever2api = require('doclever2api')

// 引用改方法或者工具

const result = doclever2api(apijson.data)
fs.writeFileSync('./result-1.json', JSON.stringify(result))

toc

1.自动登录,不需要自己在doclerver下载json文件 2.自动解析 3.生成接口