generated from stagas/ts
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
59 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,58 @@ | ||
# puppeteer-pretty-console | ||
<h1 align="center">puppeteer-pretty-console</h1> | ||
|
||
<p align="center"> | ||
helper that setups console output for puppeteer | ||
</p> | ||
|
||
<p align="center"> | ||
<a href="#install"> 🔧 <strong>Install</strong></a> | ||
· <a href="#example"> 🧩 <strong>Example</strong></a> | ||
· <a href="#api"> 📜 <strong>API docs</strong></a> | ||
· <a href="https://github.com/stagas/puppeteer-pretty-console/releases"> 🔥 <strong>Releases</strong></a> | ||
· <a href="#contribute"> 💪🏼 <strong>Contribute</strong></a> | ||
· <a href="https://github.com/stagas/puppeteer-pretty-console/issues"> 🖐️ <strong>Help</strong></a> | ||
</p> | ||
|
||
*** | ||
|
||
## Install | ||
|
||
```sh | ||
$ npm i puppeteer-pretty-console | ||
``` | ||
|
||
## API | ||
|
||
<!-- Generated by documentation.js. Update this documentation by updating the source code. --> | ||
|
||
#### Table of Contents | ||
|
||
* [puppeteerPrettyConsole](#puppeteerprettyconsole) | ||
* [Parameters](#parameters) | ||
|
||
### puppeteerPrettyConsole | ||
|
||
[src/index.ts:16-76](https://github.com/stagas/puppeteer-pretty-console/blob/278457b71514ec77623455172f900aca5b5d521c/src/index.ts#L16-L76 "Source code on GitHub") | ||
|
||
Setups console output for a puppeteer page. | ||
|
||
```ts | ||
const page = await browser.newPage() | ||
puppeteerPrettyConsole(page) | ||
``` | ||
|
||
#### Parameters | ||
|
||
* `page` **Page** A puppeteer page instance created by browser.newPage() | ||
|
||
## Contribute | ||
|
||
[Fork](https://github.com/stagas/puppeteer-pretty-console/fork) or | ||
[edit](https://github.dev/stagas/puppeteer-pretty-console) and submit a PR. | ||
|
||
All contributions are welcome! | ||
|
||
## License | ||
|
||
MIT © 2021 | ||
[stagas](https://github.com/stagas) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters