This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const Axios = require('axios').default; | |
const handle = async() => { | |
const response = await Axios.get("https://game-icons.net/icons/ffffff/000000/1x1/lorc/robe.svg"); | |
const base64 = Buffer.from(response.data).toString('base64'); | |
console.log(base64); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Examples | |
// "routes/get.js" for a get on "/" | |
// "route/users/get.js" for a get on "/users" | |
// "route/users/post.js" for a post on "/users" | |
// "route/users/$id/post.js" for a post on "/users/:id" | |
import fs from 'fs-readdir-recursive' | |
import express from 'express' |