Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

kc-jreq

[browser] JSON HTTP Requests.

http request, xhr, post json, read json

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);
});