
imgbb-uploader:轻松推送到imgbb API
5星
- 浏览量: 0
- 大小:None
- 文件类型:ZIP
简介:
lightweight Node.js module imgbb-uploader is designed to upload local image files to the imgbb API, returning their display URLs as responses. Its primary function is to facilitate imgBBs handling of image hosting and distribution. Compatibility: Requires Node.js version 8 or higher. Note that this module operates under the hood using fs, which means it wont function outside the Node environment. Its strongly advised against exposing API keys from frontend code. However, for certain use cases (e.g., yolo), you can leverage window.File and window.fetch as alternatives. The module accepts exactly two string parameters: your API key and the absolute path to your image. To install the module, run npm install imgbb-uploader alongside two string parameters indicating your API key and image path (for old versions or LTS).
全部评论 (0)


