1.1.2 • Published 6 months ago

@lxdao/uploader3-connector v1.1.2

Weekly downloads
-
License
MIT
Repository
-
Last release
6 months ago

uploader3-connector

npm version npm downloads

Uploader3 Connector is a connector for Uploader3]. Currently, it only supports NFT.storage IPFS service provider.

Supported service provider

Support Img3 and list here? Contact @muxin or create a ticket in LXDAO DC.

Usage

import { createConnector } from '@lxdao/uploader3-connector';

API

createConnector

Create a connector for Uploader3 upload service.

export const createConnector: (service: 'NFT.storage', options: { token: string }) => Connector;

Types reference

Connector

interface PostImageFile {
  /** base64 encoded image file */
  data: string;
  /** file type */
  type: 'image/png' | 'image/jpeg' | 'image/gif' | 'image/jpg';
}

export type Connector = {
  postImage: (image: PostImageFile) => Promise<{ cid: string; url: string }>;
};
1.1.1

6 months ago

1.1.0

6 months ago

1.1.2

6 months ago

1.0.1

12 months ago

1.0.0

1 year ago

0.0.0

1 year ago