timeout

Type:
<string> | <number>

Default: 28s
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: '10s' })

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=10s       # 10000
https://microlink.io&timeout=10secs    # 10000
https://microlink.io&timeout=10second  # 10000
https://microlink.io&timeout=10seconds # 10000
https://microlink.io&timeout=10000     # 10000