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);
});
[nodejs] JSON HTTP Requests.
<script type="module">
import kcNreq from 'https://cdn.skypack.dev/kc-nreq';
</script>
[nodejs] JSON HTTP Requests.
npm install kc-nreq
var data = { a: 1, b: 2 };
nreq('POST', 'https://mypage.com', data, function(res, status){
console.log(res);
console.log(status);
});