const request =awaitfetch('https://passwd.dev/api/generate',{method:'POST',headers:{'Accept':'text/plain'},body:JSON.stringify({length:12,lowerCase:true,upperCase:true,numeric:true,special:false,})});console.log(await request.text());// prints generated password as plain text