Skip to content

截图服务:把 HTML / Markdown / URL 渲染成图片

Methods ​

cleanupTemp() ​

cleanupTemp(olderThanMs?): Promise<number>

Parameters ​

olderThanMs? ​

number

Returns ​

Promise<number>


screenshot() ​

screenshot(html, options?): Promise<string>

Parameters ​

html ​

string

options? ​

ScreenshotOptions

Returns ​

Promise<string>


screenshotFromUrl() ​

screenshotFromUrl(url, options?): Promise<string>

Parameters ​

url ​

string

options? ​

ScreenshotOptions

Returns ​

Promise<string>


screenshotMarkdown() ​

screenshotMarkdown(markdownContent, options?): Promise<string>

Parameters ​

markdownContent ​

string

options? ​

MarkdownScreenshotOptions

Returns ​

Promise<string>

Released under the MIT License with love.