semantic-analysis
Version:
Extensible semantic Structured Data analysis library for Microdata and JSON-LD
13 lines • 434 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.loadPage = void 0;
var tslib_1 = require("tslib");
var axios_1 = tslib_1.__importDefault(require("axios"));
exports.loadPage = function (url) {
return axios_1.default.get(url, { responseType: 'text' })
.then(function (response) { return ({
url: url,
body: response.data,
}); });
};
//# sourceMappingURL=WebPage.js.map