animated and static element screenshots
npm i shoty -g
|
pnpm add shoty -g
|
yarn global add shoty
|
# node
# view source
example/node.ts
import { Options, run } from 'shoty'
run(
new Options({
file: 'web.ts',
root: __dirname,
})
).then(() => console.log('complete'))
# web
}>
# takeCliScreenshot
(options)
src/take-cli-screenshot.ts#L16
# options
takeCliScreenshot(options) =>
-
Promise<void>
# takeScreenshot
(options)
src/take-screenshot.ts#L16
# options
takeScreenshot(options) =>
-
Promise<any>
- @stagas/terminal-screenshot by stagas – Render terminal ANSI output into images!
- @stagas/timecut by stagas – Record smooth movies of web pages
- decarg by stagas – decorator based cli arguments parser
- puppeteer by The Chromium Authors – A high-level API to control headless Chrome over the DevTools Protocol
- puppeteer-pretty-console by stagas – helper that setups console output for puppeteer
- vite by Evan You – Native-ESM powered web dev build tool
- vite-open by stagas – Open any file directly in a Vite dev server.
All contributions are welcome!