/**
* Placeholder Text (Lorem Ipsum) API
* GET https://api.globus.studio/v2/ph_text?sentence=5&word=10
* Response: plain text lorem ipsum
*/
async function placeholderText(sentence, word) {
const res = await fetch(`https://api.globus.studio/v2/ph_text?sentence=${sentence}&word=${word}`);
return res.text();
}
// 5 sentences, 10 words each
placeholderText(5, 10).then(t => console.log(t));