-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
package.json
to 1.2.0 [skip ci]
# [1.2.0](v1.1.0...v1.2.0) (2021-10-29) ### Features * **actions and codecov:** programed codecov and update actions ([96852ed](96852ed)) * **docs:** removed docs-ts and implemented typedocs ([5bf319e](5bf319e))
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,28 @@ | ||
/** | ||
* @since 1.0.0 | ||
*/ | ||
import * as PuppeteerExtends from "./main/puppeteer"; | ||
import { Logger } from "./main/logger"; | ||
/** | ||
* @since 1.0.0 | ||
* Main instances of puppeteer-extends | ||
* | ||
* ```typescript | ||
* import { PuppeteerExtends, Logger } from 'puppeteer-extends'; | ||
* | ||
* const main = async () => { | ||
* const browser = await PuppeteerExtends.getBrowser({ isHeadless: true }); | ||
* if (browser) { | ||
* const page = await browser.newPage(); | ||
* // An example of crawling a page with CloudFlare applied. | ||
* Logger.debug('🚧 Crawling in progress...'); | ||
* const url = 'https://github.com/devalexanderdaza'; | ||
* await PuppeteerExtends.goto(page, url); | ||
* await page.screenshot({ path: 'devalexanderdaza-github-screenshot.png' }); | ||
* | ||
* Logger.debug('🚧 Crawling is complete.'); | ||
* Logger.debug('🚧 Exit the Puppeteer...'); | ||
* await browser.close(); | ||
* } | ||
* } | ||
* | ||
* main().then(r => {}); | ||
* ``` | ||
*/ | ||
export { PuppeteerExtends, Logger }; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.