coronavirus-stats
Version:
Check covid-19 stats in terminal
16 lines • 665 B
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
exports.__esModule = true;
var node_fetch_1 = __importDefault(require("node-fetch"));
function get() {
return node_fetch_1["default"]('https://www.worldometers.info/coronavirus/')
.then(function (res) { return res.text(); })
.then(function (body) { return body; })["catch"](function (err) {
});
}
exports.get = get;
var networkErrorMessage = 'There was a problem. Please check your network connection.';
exports.networkErrorMessage = networkErrorMessage;
//# sourceMappingURL=index.js.map