UNPKG

persistent-image-url

Version:

A lightweight Node.js library for persisting image URLs using the [imgbb.com](https://imgbb.com/) or [sm.ms](https://sm.ms/) API. This library allows you to upload images from temporary URLs and get back persistent URLs that can be used to access the imag

8 lines (7 loc) 219 B
type Uploader = "imgbb" | "smms"; export type UploaderConfig = { uploader?: Uploader; token: string; }; export declare function persistImage(tempUrl: string, config: UploaderConfig): Promise<string>; export {};