Module

Toppokki

Package
purescript-toppokki
Repository
justinwoo/purescript-toppokki

#Puppeteer Source

data Puppeteer :: Type

#Browser Source

data Browser :: Type

#Page Source

data Page :: Type

#URL Source

newtype URL

Constructors

Instances

#launch Source

launch :: forall e. Aff e Browser

#newPage Source

newPage :: forall e. Browser -> Aff e Page

#goto Source

goto :: forall e. URL -> Page -> Aff e Unit

#close Source

close :: forall e. Browser -> Aff e Unit

#content Source

content :: forall e. Page -> Aff e String

#ScreenshotOptions Source

type ScreenshotOptions = (clip :: { height :: Int, width :: Int, x :: Int, y :: Int }, fullPage :: Boolean, omitBackground :: Boolean, path :: String, quality :: Int, type :: String)

#screenshot Source

screenshot :: forall e trash options. Union options trash ScreenshotOptions => Record options -> Page -> Aff e Buffer

#PDFMargin Source

data PDFMargin :: Type

#PDFMarginOptions Source

type PDFMarginOptions = (bottom :: String, left :: String, right :: String, top :: String)

#makePDFMargin Source

makePDFMargin :: forall trash options. Union options trash PDFMarginOptions => Record options -> PDFMargin

#PDFOptions Source

type PDFOptions = (displayHeaderFooter :: Boolean, footerTemplate :: String, format :: String, headerTemplate :: String, height :: String, landscape :: Boolean, margin :: PDFMargin, pageRanges :: String, path :: String, printBackground :: Boolean, scale :: Int, width :: String)

#pdf Source

pdf :: forall e trash options. Union options trash PDFOptions => Record options -> Page -> Aff e Buffer

#_launch Source

_launch :: forall e. Eff e (Promise Browser)

#_newPage Source

_newPage :: forall e. Fn1 Browser (Eff e (Promise Page))

#_goto Source

_goto :: forall e. Fn2 URL Page (Eff e (Promise Unit))

#_close Source

_close :: forall e. Fn1 Browser (Eff e (Promise Unit))

#_content Source

_content :: forall e. Fn1 Page (Eff e (Promise String))

#_screenshot Source

_screenshot :: forall e options. Fn2 options Page (Eff e (Promise Buffer))

#_pdf Source

_pdf :: forall e options. Fn2 options Page (Eff e (Promise Buffer))
Modules
Toppokki