README
@bfunjs/fetch
import { fetch, IMethods } from '@bfunjs/fetch';
const params = {
url: 'https://registry.npmjs.com/react/16.13.0',
method: IMethods.GET,
headers: {}
};
fetch(params).then(res => {
console.log(res);
});
@bfunjs/fetch library
<script type="module">
import bfunjsFetch from 'https://cdn.skypack.dev/@bfunjs/fetch';
</script>
import { fetch, IMethods } from '@bfunjs/fetch';
const params = {
url: 'https://registry.npmjs.com/react/16.13.0',
method: IMethods.GET,
headers: {}
};
fetch(params).then(res => {
console.log(res);
});