UNPKG

@saiballo/html-validator-enhanced

Version:

A Node module with optional settings for validating HTML pages using the "validator.w3.org/nu" or "whatwg" standard.

12 lines (9 loc) 243 B
const axios = require("axios").default; function getData(url) { return new Promise((resolve, reject) => { axios.get(url) .then((response) => resolve(response.data)) .catch((error) => reject(error)); }); } module.exports = getData;