Answers for "const axios = require('axios').default;"

5

import axios

import axios from "axios";
Posted by: Guest on May-12-2020
0

const axios = require('axios').default;

import axios from "axios";
axios.get('https://github.com/ircbloqcc/ircbloq-releases/releases/latest/download/version.json');
	
    .then((response) => {
    console.log(response.data);
    console.log(response.status);
    console.log(response.statusText);
    console.log(response.headers);
    console.log(response.config);
	});
Posted by: Guest on October-07-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language