Axios but only with fetch api and response = response.data, ts is supported
Use the package manager npm to install foobar.
npm i fejon
<script src="https://cdn.jsdelivr.net/npm/fejon"></script>
import fejon from 'fejon'
const url = 'https://[url to my api]'
const logData = async () => {
const data = await fejon.get(url)
console.log(data)
}
data()
- GET
- POST
- DELETE
- PUT
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.