timeout

Type:
<string> | <number>

Default: 25s
It sets the maximum quantity of time allowed for the internal request lifecycle over the target url.
  • CLI
  • JavaScript
  • Shell
  • Python
  • Ruby
const mql = require('@microlink/mql')

const { status, data } = await mql('https://microlink.io', { timeout: '25s' })

mql.render(data)
The default value is the maximum time available.
You can specify the value in any of the following human-readable way:
https://microlink.io&timeout=25s       # 25000
https://microlink.io&timeout=25secs    # 25000
https://microlink.io&timeout=25second  # 25000
https://microlink.io&timeout=25seconds # 25000
https://microlink.io&timeout=25000     # 25000