mediaType

Type: <string>
Default: 'screen'
Values:
'screen' | 'print'
It sets the CSS media type into the browser page over the target url.
  • CLI
  • JavaScript
  • Shell
  • Python
  • Ruby
const mql = require('@microlink/mql')

const { status, data } = await mql(
  'https://blog.alexmaccaw.com/advice-to-my-younger-self',
  { pdf: true, mediaType: 'screen' }
)

mql.render(data)
Normally you will combine this query parameter with screenshot or pdf. If you are using pdf, the default media type will be 'print'.