@textnav/urllog
v0.1.5
Published
An NPX package for inspecting web pages using Playwright.
Readme
urllog
This is an NPX package for inspecting web pages. It uses Playwright to capture screenshots, page content, console logs, and execute JavaScript.
Installation
npx @textnav/urllog [options] <url>Usage
To inspect a web page, run the command with the URL as the argument:
npx @textnav/urllog <url>For example:
npx @textnav/urllog http://localhost:5173/To see the available options, use the --help or -h flag:
npx @textnav/urllog --helpDevelopment
To build the package:
- Install dependencies:
npm install - Build the project:
npm run build
This will compile the TypeScript code to JavaScript in the dist directory.
Testing
This project uses Playwright Test for testing.
To run the tests:
Make sure the application you want to inspect is running (e.g.,
npm run devif it's a local development server).Run the tests:
npm testor, to run the tests in headed mode so you can see the browser:
npm test --headedor, to run the tests with the UI:
npx playwright test --ui
