npm.io
1.4.0 • Published 10 months ago

sistorage-client

Licence
MIT
Version
1.4.0
Deps
0
Size
56 kB
Vulns
0
Weekly
0
Stars
1

SIStorage service web client.

Install

npm install sistorage-client

Example usage

import SIStorageClient from 'sistorage-client';

const client = new SIStorageClient({ serviceUri: '<insert service address here>' });

// Get required facet values
const authors = await client.facets.getAuthorsAsync();

// Search package by filters
const packages = await client.packages.getPackagesAsync({ authorId: authors[0] }, { count: 5 });