New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@aut-labs/sdk-storage

Package Overview
Dependencies
Maintainers
4
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aut-labs/sdk-storage

Nft.Storage wrapper

latest
npmnpm
Version
0.0.1
Version published
Maintainers
4
Created
Source

Overview

It a nft.storage wrapper library to help with the issues coming from installing with webpack 5 polyfills in combination with @biconomy/mexa sdk

NF Storage

nft.storage

Biconomy SDK

Biconomy Mexa

Installation

npm i @aut-labs-private/sdk-storage

or if you prefer using yarn yarn @aut-labs-private/sdk-storage

Get started

class AutSDKStorage {
    ipfsCIDToHttpUrl(url: string, isJson?: boolean): string;
    storeImageAsBlob: (file: File) => Promise<string>;
    storeAsBlob: (json: any) => Promise<string>;
    storeAsJson: (json: any) => Promise<string>;
    isValidUrl: (uri: string) => boolean;
}

Example usage


const client = new AutSDKStorage({
    nftStorageApiKey: process.env.nftStorageApiKey
});

const respnse = await this.client.storeImageAsBlob(file);
// response ipfs://${cid}

Keywords

sdk

FAQs

Package last updated on 27 Jul 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts