Skip to content

yakeing/https.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

https.js

codecov TAG NPM

Package

codecov-totals

This is a pure JavaScript small program, does not need third-party software support

Features

  • Pure JavaScript writing
  • A simple class file

Installation

Use Node.js to install the library. Of course, You can go to package to view.

npm i https.js

Code Example

var url = "https://example.com";
var res_function = function(res, status) {
  if( status == 200){ //ok
    var responseText = JSON.parse(res);
    // responseText
  }
}

var ARGUMENTS = {URL:url, RES_FUNCTION:res_function, HEADER:{'Content-type':'application/json;charset=UTF-8'}};
https(ARGUMENTS);

If you need to learn more, go to more examples.

Author

weibo: yakeing

twitter: yakeing

License

MPL-2.0