open-index/open-npm huggingface dataset:
npm package: @skyledge/sdk
Description: Sky Ledge Client Library for NodeJS and the browser
Latest version: 0.0.41

The Sky Ledge SDK provides convenient access to the Sky Ledge API from applications written in both server-side and client-side JavaScript/Typescript.

For more information about how to use Sky Ledge, [visit the Sky Ledge documentation](https://docs.skyledge.com).

# Installation

### NPM:

`npm install @skyledge/sdk --save`

### Yarn:

`yarn add @skyledge/sdk`

# Usage

The package needs to be configured with your account's API key, which is available from the Management section of your Sky Ledge account.

```ts
import { Configuration } from "@skyledge/sdk";

const configuration = new Configuration({
  apiKey: "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXX",
  basePath: "https://api.skyledge.com",
});
```

Once you have your configuration object, you can instantiate the different Sky Ledge APIs:

```ts
import { Configuration, AssetsApi } from "@skyledge/sdk";

const configuration = new Configuration({
  apiKey: "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXX",
  basePath: "https://api.skyledge.com",
});

const assetsApi = new AssetsApi(configuration);

const assets = await assetsApi.listAssets();
```