文件名称:netlify-asset-store-js
文件大小:29KB
文件格式:ZIP
更新时间:2024-05-23 23:36:59
JavaScript
Netlify资产商店JS客户端 这是一个JS库Netlify Asset's Store。 它允许您创建公共和私有资产,将它们上传到商店并获取它们。 用法 import NetlifyAssetStore from 'netlify-asset-store' const url = "https://api.netlify.com/api/v1/sites/site_id/assets" ; const token = "access-token" ; const store = new NetlifyAssetStore ( url , token ) ; store . create ( file ) . then ( ( response ) => console . log ( response . asset . url ) , ( error ) => console
【文件预览】:
netlify-asset-store-js-master
----package.json(1012B)
----.github()
--------PULL_REQUEST_TEMPLATE.md(952B)
--------ISSUE_TEMPLATE.md(1KB)
----LICENSE(1KB)
----CONTRIBUTING.md(878B)
----src()
--------index.js(2KB)
----.gitignore(19B)
----CODE_OF_CONDUCT.md(3KB)
----README.md(919B)
----yarn.lock(81KB)