pasture,
@pasture@btrfly.social avatar

Need a wrapper around the left-pad API, this is way too complicated for a lowly developer like me

async function leftPad(str, len){
try {
return (await (await fetch("https://left-pad.com/?str=" + encodeURIComponent(str) + "&len=" + len)).json()).result;
} catch(e) throw e;
}

That'll be $6 gorillion per year please

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • Hentai
  • doujinshi
  • announcements
  • general
  • All magazines