Wait until the page is fully loaded before downloading it with got in NodeJS [duplicate]

I want to retrieve automaticly the text from a getpaste.link. I’m fine with parsing but I need to wait until the page made it’s server request to get the plaintext.

i.e.
I use got in NodeJS to get html from a page.
I get this :
loading getpastlink page
Because it doesn’t want until I get this:
loaded getpastlink page

I’ve searched up on the documentation for anytype of delays but I didn’t find anything.