🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

doclever2api

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

doclever2api

## 使用方法

npmnpm
Version
1.0.0
Version published
Weekly downloads
3
200%
Maintainers
1
Weekly downloads
 
Created
Source

这是一个把doclever 的文档转换为特定格式的工具

使用方法

const fs = require('fs')
// 1.在 doclerver 中下载项目的json文件
const apijson = require('./WMS-2.json')
// 引用改方法或者工具
const { formatJson } = require('./index')

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

使用apiTransform

const apiTransform = require('./apiTransform')
/**
 * @param source [string] 来源路径
 * @param target [string] 目标路径
 **/
apiTransform('./**API.json**', 'server.json')

得到server.json 文件放入目录的/config/server.json中使用

toc

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

FAQs

Package last updated on 20 May 2019

Did you know?

Socket

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