@pelicanplatform/web-client
TypeScript icon, indicating that this package has built-in type declarations

0.0.6 • Public • Published

Pelican Web Client

Dynamic JSON Badge Dynamic JSON Badge

NPM Github

Installation

npm i @pelicanplatform/web-client

Usage

import Client from "@pelicanplatform/web-client";

const discoveryUrl = "https://osg-htc.org" // Example discovery URL used for OSDF
const filePath = "/example/file/path.txt" // Example file path

const webClient = new Client(discoveryUrl);

try {
	webClient.getFile(filePath) // Downloads file to path.txt
} catch (e) {
	pass
}

Example usage can be found here:

https://github.com/PelicanPlatform/web-client/blob/main/website/src/app/page.tsx

Readme

Keywords

none

Package Sidebar

Install

npm i @pelicanplatform/web-client

Weekly Downloads

0

Version

0.0.6

License

Apache-2.0

Unpacked Size

13.6 kB

Total Files

4

Last publish

Collaborators

  • cannonlock-morgridge