js-client:Netlify的Open-API衍生JS + Node.js API客户端

时间:2024-02-21 20:58:24
【文件属性】:

文件名称:js-client:Netlify的Open-API衍生JS + Node.js API客户端

文件大小:256KB

文件格式:ZIP

更新时间:2024-02-21 20:58:24

nodejs javascript api rest swagger

netlify / js客户端 一个在浏览器和Node.js中工作的Netlify 客户端。 用法 const NetlifyAPI = require ( 'netlify' ) const listNetlifySites = async function ( ) { const client = new NetlifyAPI ( '1234myAccessToken' ) const sites = await client . listSites ( ) return sites } 使用OpenAPI操作 const NetlifyAPI = require ( 'netlify' ) const client = new NetlifyAPI ( '1234myAccessToken' ) const listCreateAndDeleteSite = async function ( ) { // Fetch sites const sites = await client . listSites ( ) // Create a site. No


【文件预览】:
js-client-master
----package.json(4KB)
----.github()
--------PULL_REQUEST_TEMPLATE.md(949B)
--------ISSUE_TEMPLATE.md(1KB)
--------workflows()
--------CODEOWNERS(71B)
----package-lock.json(502KB)
----CONTRIBUTING.md(2KB)
----src()
--------index.js(3KB)
--------operations.test.js(147B)
--------deploy()
--------addons.js(2KB)
--------index.test.js(19KB)
--------operations.js(939B)
--------operations.test.js.md(339KB)
--------methods()
--------operations.test.js.snap(71KB)
----.eslintrc.js(291B)
----renovate.json5(413B)
----codecov.yml(137B)
----.gitignore(61B)
----webpack.config.js(493B)
----CHANGELOG.md(47KB)
----commitlint.config.js(66B)
----CODE_OF_CONDUCT.md(3KB)
----README.md(8KB)
----.editorconfig(169B)
----.gitattributes(19B)
----fixtures()
--------netlify.toml(0B)
----.prettierrc.json(47B)

网友评论