zyer
v0.1.1
Published
An https library for the browser
Downloads
4
Maintainers
Readme
zyer
A small https library for fetching data based of XMLHttpRequest inspired by axios
Usage
This works in the browser only. I used this project to learn and understand Promises and Callbacks in JavaScript. It can be used, tested for major browsers
To use zyer
you can download the source file here and use it.
You can also install the package on npm and link it to your html file. You must have node installed
npm i zyer
Then you can place the script in the code.
<script src="./node_modules/zyer/zyer.js">
Recommended Installation You can also use the CDN.
<script src="https://unpkg.com/[email protected]/zyre.js">
Projections
- Replace new Promise() with async/await
- Implement zyer.all() for multiple requests
- Implement for Node.js and Deno(TypeScript)
- Transpile to ES5 and minify it for cdn