@types/image-to-base64
TypeScript icon, indicating that this package has built-in type declarations

2.1.2 • Public • Published

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.

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i @types/image-to-base64

      Weekly Downloads

      7,624

      Version

      2.1.2

      License

      MIT

      Unpacked Size

      3.33 kB

      Total Files

      5

      Last publish

      Collaborators

      • types