Trên GitHub, sindresorhus/pageres đã đạt 9.7k sao, ngôn ngữ TypeScript. Capture website screenshots
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
Capture screenshots of websites in various resolutions. A good way to make sure your websites are responsive. It's speedy and generates 100 screenshots from 10 different websites in just over a minute. It can also be used to render SVG images.
See pageres-cli for the command-line tool.
Install
npm install pageres
Note to Linux users: If you get a "No usable sandbox!" error, you need to enable system sandboxing.
Define a customized filename using Lo-Dash templates.
For example: <%= date %> - <%= url %>-<%= size %><%= crop %>.
Available variables:
url: The URL in slugified form, eg. http://yeoman.io/blog/ becomes yeoman.io!blog
size: Specified size, eg. 1024x1000
width: Width of the specified size, eg. 1024
height: Height of the specified size, eg. 1000
crop: Outputs -cropped when the crop option is true
date: The current date (YYYY-MM-DD), eg. 2015-05-18
time: The current time (HH-mm-ss), eg. 21-15-11
incrementalName
Type: boolean
Default: false
When a file exists, append an incremental number.
selector
Type: string
Capture a specific DOM element matching a CSS selector.
hide
Type: string[]
Hide an array of DOM elements matching CSS selectors.
clickElement
Type: string
Click the DOM element matching the given CSS selector.
username
Type: string
Username for authenticating with HTTP auth.
password
Type: string
Password for authenticating with HTTP auth.
scale
Type: number
Default: 1
Scale webpage n times.
format
Type: string
Default: png
Values: 'png' | 'jpg'
Image format.
userAgent
Type: string
Custom user agent.
headers
Type: object
Custom HTTP request headers.
transparent
Type: boolean
Default: false
Set background color to transparent instead of white if no background is set.
darkMode
Type: boolean
Default: false
Emulate preference of dark color scheme.
launchOptions
Type: object
Default: {}
Options passed to puppeteer.launch().
beforeScreenshot
Type: Function
The specified function is called right before the screenshot is captured, as well as before any bounding rectangle is calculated as part of options.element. It receives the Puppeteer Page instance as the first argument and the browser instance as the second argument. This gives you a lot of power to do custom stuff. The function can be async.
Note: Make sure to not call page.close() or browser.close().
Trang TopGit này là một snapshot — tab "Readme" hiển thị nguyên văn README của repo (đã bỏ link, giữ ảnh). Repo GitHub ở github.com/sindresorhus/pageres là nguồn chính thức.
sindresorhus/pageres có bao nhiêu sao?
sindresorhus/pageres có 9.7k sao GitHub — tải lại trang để xem số mới nhất, hoặc xem trực tiếp github.com/sindresorhus/pageres. TopGit phản chiếu số sao của GitHub nhưng không cam kết đến từng phút.
sindresorhus/pageres có phải mã nguồn mở không?
Có — sindresorhus/pageres phát hành theo license MIT, nghĩa là mã nguồn mở để đọc, fork và (tùy license) tái sử dụng. Mã: github.com/sindresorhus/pageres.
sindresorhus/pageres có tag gì không?
Bản đồng bộ chưa ghi nhận topic GitHub nào cho sindresorhus/pageres. GitHub topics hiển thị ở thanh bên phải trang repo — đó là nơi đáng kiểm tra nhất.
sindresorhus/pageres có website riêng không?
TopGit chưa ghi nhận URL trang chủ cho sindresorhus/pageres. Phần README ở tab phía trên thường có link demo, hoặc xem mô tả GitHub của repo.
sindresorhus/pageres còn đang phát triển không?
Commit gần nhất trên sindresorhus/pageres là 1.1 năm trước (theo timestamp GitHub). Repo có 720 fork — một chỉ báo về mức độ quan tâm của cộng đồng.
Đọc đầy đủ README ở tab phía trên.
Chưa chắc pageres có hợp với bạn?
Để ChatGPT, Claude hoặc Perplexity tìm hiểu giúp — bấm bên dưới và xem AI nói gì về pageres.