ditzzsenpai-api
Version:
Simple NPM api for your app
12 lines (10 loc) • 321 B
JavaScript
let fetch = require("node-fetch");
module.exports = (async (emo1, emo2) => {
let result = await fetch(
`https://emojimix-api.justcaliph.tech/api/v1/${encodeURIComponent(
emo1
)}/${encodeURIComponent(emo2)}`
);
if (result.status != 200) throw await result.json();
return result.buffer();
}).bind();