Installation
npm install --save @types/image-to-base64
Summary
This package contains type definitions for image-to-base64 (https://github.com/renanbastos93/image-to-base64#readme).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/image-to-base64.
index.d.ts
/**
* Generate a base64 code from an image through a URL or a path.
*/
export as namespace imageToBase64;
/**
* Generate a base64 code from an image through a URL or a path.
* @param path - a URL or a path
* @returns a base64 code from an image
*/
declare function imageToBase64(urlOrImage: string): Promise<string>;
export = imageToBase64;
Additional Details
- Last updated: Tue, 07 Nov 2023 03:09:37 GMT
- Dependencies: none
Credits
These definitions were written by Piotr Błażejewicz.