Skip to content

Instantly share code, notes, and snippets.

View Rushikesh1Avachat's full-sized avatar

Rushikesh1 Avachat1 Rushikesh1Avachat

  • FOSS WORKSHOP
  • Pune,Mahashatra=411014
View GitHub Profile
@adrianhajdin
adrianhajdin / index.js
Created July 29, 2022 10:09
I Abandoned Postman for This NEW VS Code Extension | Build, Test & Sell APIs 🤑
import axios from 'axios';
const getCountries = async (currencyCode) => {
try {
const response = await axios.get(`https://restcountries.com/v3.1/currency/${currencyCode}`);
return response.data.map(country => country.name.common);
} catch (error) {
throw new Error(`Unable to get countries that use ${currencyCode}`);
}