import mql from '@microlink/mql' const { data } = await mql('https://example.com', { screenshot: true, styles: [ "body { background: white; }", 'div { border: 1px solid gray; font-family: "Comic Sans MS", "Comic Sans", cursive; }' ] })
styles
Type:
<string> | <string[]>
The code to be injected can be defined as:
- Inline code (e.g.,
'body{background:red}'
). - Absolute URLs (e.g.,
'https://cdn.jsdelivr.net/npm/hack@0.8.1/dist/dark.css'
).