Options
All
  • Public
  • Public/Protected
  • All
Menu

Module lib

A client library for the https://nft.storage/ service. It provides a convenient interface for working with the Raw HTTP API from a web browser or Node.js and comes bundled with TS for out-of-the box type inference and better IntelliSense.

example
import { NFTStorage, File, Blob } from "nft.storage"
const client = new NFTStorage({ token: API_TOKEN })

const cid = await client.storeBlob(new Blob(['hello world']))

Index

Type Aliases

BlockstoreI: Blockstore

Type Parameters

    CIDString: lib/interface

    Type Parameters

      CarReader: lib/interface

      Type Parameters

        Type Parameters

          FileObject: lib/interface

          Type Parameters

            FilesSource: lib/interface

            Type Parameters

              Type Parameters

                RateLimiter: lib/interface

                Type Parameters

                  RequestOptions: lib/interface

                  Type Parameters

                    Service: lib/interface

                    Type Parameters

                      TokenType<T>: lib/interface

                      Type Parameters

                      • T

                      Variables

                      Blob: typeof Blob
                      File: typeof File
                      FormData: typeof FormData

                      Functions

                      • toAsyncIterable<T>(iterable: Iterable<T>): AsyncIterable<T>
                      • Cast an iterable to an asyncIterable

                        Type Parameters

                        • T

                        Parameters

                        • iterable: Iterable<T>

                        Returns AsyncIterable<T>

                      Generated using TypeDoc