https://github.com/entria/api
API wrapper on top of fetch using flow generics
https://github.com/entria/api
api entria
Last synced: about 1 year ago
JSON representation
API wrapper on top of fetch using flow generics
- Host: GitHub
- URL: https://github.com/entria/api
- Owner: entria
- Created: 2017-08-16T21:29:34.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-08-16T22:16:43.000Z (almost 9 years ago)
- Last Synced: 2025-04-12T09:12:02.921Z (about 1 year ago)
- Topics: api, entria
- Language: JavaScript
- Homepage:
- Size: 41 KB
- Stars: 14
- Watchers: 15
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# API
## Install
yarn add @entria/api
## Usage
```jsx
try {
const data = await api({
url: 'https://example.com/users',
method: 'GET',
};
catch (err) {
console.log('not ok', err);
}
```