# node-chrome-page

> Simply fetch any web page using Chrome browser after the page's JavaScript is loaded. Now using Puppeteer with stealth mode.

Latest version **0.2.0** (published 2019-05-06) · MIT license · 0 weekly downloads

## Install

```sh
npm install node-chrome-page
pnpm add node-chrome-page
yarn add node-chrome-page
bun add node-chrome-page
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.0 |
| Published | 2019-05-06 |
| First published | 2019-01-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | 8.x |
| Dependencies | 5 |
| Unpacked size | 5.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Maintainers | rehmat |
| Keywords | node, chrome, puppeteer, html, stealth, cache |

## Links

- npm: https://www.npmjs.com/package/node-chrome-page
- Repository: https://github.com/animatedcreativity/node-chrome-page
- Homepage: https://github.com/animatedcreativity/node-chrome-page#readme
- Issues: https://github.com/animatedcreativity/node-chrome-page/issues
- npm.io page: https://npm.io/package/node-chrome-page

## Dependencies (5)

- [puppeteer](https://npm.io/package/puppeteer.md) ^1.15.0
- [node-big-cache](https://npm.io/package/node-big-cache.md) ^0.0.3
- [puppeteer-extra](https://npm.io/package/puppeteer-extra.md) ^2.1.3
- [node-sanitize-options](https://npm.io/package/node-sanitize-options.md) ^0.0.6
- [puppeteer-extra-plugin-stealth](https://npm.io/package/puppeteer-extra-plugin-stealth.md) ^2.2.2

## Alternatives

- [@tsparticles/shape-image](https://npm.io/package/@tsparticles/shape-image.md) — 303.7K weekly downloads
- [@tsparticles/shape-line](https://npm.io/package/@tsparticles/shape-line.md) — 233.7K weekly downloads
- [stringify-attributes](https://npm.io/package/stringify-attributes.md) — 58.6K weekly downloads
- [mobile-drag-drop](https://npm.io/package/mobile-drag-drop.md) — 46.3K weekly downloads
- [@comunica/actor-rdf-parse-html](https://npm.io/package/@comunica/actor-rdf-parse-html.md) — 29.2K weekly downloads

## Recent versions

- 0.2.0 (latest) — 2019-05-06
- 0.1.9 — 2019-05-06
- 0.1.8 — 2019-05-06
- 0.1.7 — 2019-05-06
- 0.1.6 — 2019-01-30
- 0.1.5 — 2019-01-28
- 0.1.4 — 2019-01-28
- 0.1.3 — 2019-01-27
- 0.1.2 — 2019-01-27
- 0.1.1 — 2019-01-22
- 0.1.0 — 2019-01-22
- 0.0.9 — 2019-01-22
- 0.0.8 — 2019-01-21
- 0.0.7 — 2019-01-18
- 0.0.6 — 2019-01-18
- … 5 more at https://npm.io/package/node-chrome-page/versions

## README

# node-chrome-page
Simply fetch any web page using Chrome browser after the page's JavaScript is loaded. Now using Puppeteer with stealth mode.

--------------------------------------------

**Usage:**

```
var chromePage = require("node-chrome-page");
var chrome = new chromePage();
chrome.page(link, cacheTime, cacheFile);
```

- link: Page to fetch
- cacheTime: Time to cache the page in seconds. (OPTIONAL)
- cacheFile: File to use for cache. (OPTIONAL)

**Example (latest):**

```
var chromePage = require("node-chrome-page");
var chrome = new chromePage();
chrome
  .page("https://google.com", 10, "node-chrome-page.json")
  .then(function(html) {
    console.log(html);
  })
  .catch(function(error) {
    console.log(error);
  });
```

**Example (till v0.0.8):**

```
require("node-chrome-page")
  .page("https://google.com", 10)
  .then(function(html) {
    console.log(html);
  })
  .catch(function(error) {
    console.log(error);
  });
```

------------------------------------------------

**Version history:**

**v0.0.6:**<br/>
Added cache support.

**v0.0.9:**<br/>
Fixed a serious cache bug.

**v0.1.1:**<br/>
Added cache file name support.

**v0.1.4:**<br/>
Added large cache support using `node-big-cache`: https://www.npmjs.com/package/node-big-cache

---
_Source: https://npm.io/package/node-chrome-page · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
