kc-nreq

[nodejs] JSON HTTP Requests.

Usage no npm install needed!

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

README

HTTP Request

[nodejs] JSON HTTP Requests.

Install

npm install kc-nreq

Use

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