Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

tapup-wrapper-client

Package Overview
Dependencies
Maintainers
0
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tapup-wrapper-client

A simple client for uploading files to Google Cloud Storage via a custom wrapper API.

  • 1.0.12
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
418
Maintainers
0
Weekly downloads
 
Created
Source

TapUp Wrapper Client

A simple client for uploading files to Google Cloud Storage via a custom wrapper API.

Installation

npm install gcs-wrapper-client

Setup

  1. Create a .env file in your project root:

    TAPUP_API_KEY=your_api_key
    
  2. Initialize the package in your code:

    import { initWrapper } from "gcs-wrapper-client";
    const uploader = initWrapper();
    

Usage

Upload a File

const file = new Blob(["Hello, world!"], { type: "text/plain" });
const fileName = "example.txt";

uploader
  .uploadFile(file, fileName)
  .then((result) => {
    if (result.success) {
      console.log("File uploaded successfully:", result.fileUrl);
    } else {
      console.error("Upload failed:", result.message);
    }
  });

FAQs

Package last updated on 13 Dec 2024

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc