# chief-sdk

> This package implements the Lord of The Rings API that can be found under https://the-one-api.dev/v2

Latest version **1.0.1** (published 2022-09-11) · ISC license · 0 weekly downloads

## Install

```sh
npm install chief-sdk
pnpm add chief-sdk
yarn add chief-sdk
bun add chief-sdk
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2022-09-11 |
| First published | 2022-09-11 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 11.9 KB |
| Known vulnerabilities | 0 (+23 in 1 direct dependencies) |
| Install scripts | no |
| Author | chief.emerie |
| Maintainers | chief.emerie |
| Keywords | SDK, Lord of the Rings |

## Links

- npm: https://www.npmjs.com/package/chief-sdk
- npm.io page: https://npm.io/package/chief-sdk

## Dependencies (1)

- [axios](https://npm.io/package/axios.md) ^0.27.2

## Recent versions

- 1.0.1 (latest) — 2022-09-11
- 1.0.0 — 2022-09-11

## README

## Lord of The Rings SDK

This package implements the Lord of The Rings API that can be found under https://the-one-api.dev/v2

## How to install and use it

```bash
npm install chief-sdk
```

The module can be imported and used in your code as:
```javascript
import SDK from 'chief-sdk';
const sdk = new SDK('your-api-key');
const books = await sdk.Book.getAll();
const book = await sdk.Book.getOne()("id-of-book");

```

The module supports five different endpoints: `/book`, `/character`, `/chapter`, `/movie`, `/quote`. All modules can be accessed in the same way: 
```javascript
sdk.{Books | Character | Chapter | Movie | Quote }.get();
```

## Test the application
To test the application, just run `npm run test` from the root.

---
_Source: https://npm.io/package/chief-sdk · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
