api-generator:NodeJS Web服务客户端API生成器

时间:2024-04-25 16:32:07
【文件属性】:

文件名称:api-generator:NodeJS Web服务客户端API生成器

文件大小:19KB

文件格式:ZIP

更新时间:2024-04-25 16:32:07

JavaScript

API产生器 NodeJS的API生成库。 安装 $ npm install api-generator 用法 let apiGen = require ( 'api-generator' ) ; let config = { "name" : "fetchGithubApiEndpoints" , "type" : "REQUEST" , "methods" : [ { "type" : "GET" , "url" : "https://api.github.com" , "callback" : function ( err , data ) { if ( ! err ) { console . log ( "Success!" , data ) ; } console . log ( "Error!" , err


【文件预览】:
api-generator-stable
----.gitignore(49B)
----package.json(727B)
----package-lock.json(56KB)
----src()
--------api-generator.js(3KB)
----.travis.yml(82B)
----sampleConfig.json(146B)
----README.md(2KB)
----.npmignore(87B)
----test()
--------manual()
--------tests.js(66B)

网友评论