kc-jreq

[browser] JSON HTTP Requests.

Usage no npm install needed!

<script type="module">
  import kcJreq from 'https://cdn.skypack.dev/kc-jreq';
</script>

README

JSON Request

[browser] JSON HTTP Requests.

Install

npm install kc-jreq

Use

var data = { a: 1, b: 2 };
jreq('POST', 'https://mypage.com', data, function(res, status){
    console.log(res);
    console.log(status);
});