From e7810249aaa624ad039439d601f2a22a58376650 Mon Sep 17 00:00:00 2001 From: Victor Westerlund Date: Tue, 26 Sep 2023 16:15:40 +0200 Subject: [PATCH] feat(doc): add README --- README.md | 56 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..025e502 --- /dev/null +++ b/README.md @@ -0,0 +1,56 @@ +# Reflect API client for JavaScript + +Make requests to an API built using the [Reflect API](https://github.com/VictorWesterlund/reflect) framework over HTTP with JavaScript. + +--- + +```js +import { Client, Method } from "./reflect-client/Reflect.js + +const api = new Client("", " +``` + +## Supported browsers/environments: +![Chrome-icon](https://user-images.githubusercontent.com/35688133/230028928-dca1467d-8c63-4e69-9524-78e5751eaf24.png)
Chrome|![Firefox_logo,_2019 svg](https://user-images.githubusercontent.com/35688133/230029200-624d0126-9640-4b78-9eb5-a2e4be4e51be.png)
Firefox|![Safari_browser_logo svg](https://user-images.githubusercontent.com/35688133/230029381-e7162ba1-e9ef-4b34-803f-043b5d16d365.png)
Safari|![image](https://github.com/VictorWesterlund/reflect-client-js/assets/35688133/36ac25a9-cc69-415b-b3c8-7f328d80c16d)
NodeJS|![deno](https://github.com/VictorWesterlund/reflect-client-js/assets/35688133/beb98cb4-702b-45f1-a496-1aa66ef97130)
Deno +--|--|--|--|-- +✅ 80+|✅ 75+|✅ 14.1+|✅ 20.7.0+|✅ 1.37.0+ + +## How to use + +1. **Install with npm** + + ``` + npm i reflect-client + ``` + +2. **Initialize the class** + + ```js + import { Client, Method } from "./reflect-client/Reflect.js + + const api = new Client("", "