# forem-client

> forem client in javascript

Latest version **1.0.1** (published 2022-02-24) · MIT license · 0 weekly downloads

## Install

```sh
npm install forem-client
pnpm add forem-client
yarn add forem-client
bun add forem-client
```

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2022-02-24 |
| First published | 2022-02-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 5.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | n4n5 |
| Maintainers | n4n5 |
| Keywords | api, forem, forem-client, forem-api, dev.to, API-client |

## Links

- npm: https://www.npmjs.com/package/forem-client
- Repository: https://github.com/Its-Just-Nans/forem-client
- Homepage: https://github.com/Its-Just-Nans/forem-client#readme
- Issues: https://github.com/Its-Just-Nans/forem-client/issues
- npm.io page: https://npm.io/package/forem-client

## Recent versions

- 1.0.1 (latest) — 2022-02-24
- 1.0.0 — 2022-02-24

## README

# forem-client

Zero dependencies Forem API client : use your own request client (`axios`, `fetch` ...)

To use the Client, see the documentation of [https://developers.forem.com/api](https://developers.forem.com/api)

## API

Some routes are not not yet in the client.

## Example

Code example :

```js
import ForemClient from "forem-client"
import axios from "axios"; // import your own requester

const client = new ForemClient(axios); // your id is optional

const asyncMain = async () => {
    let req = await client.GET_getUserByUsername("n4n5"); // return user infos of n4n5
}
asyncMain();
```

## License

Licensed under the MIT License - [LICENSE](LICENSE)

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