# chrome-js

> NWR (Node-Webkit-REPL): Collection of APIs and repls for Node-Webkit

Latest version **0.2.0** (published 2015-02-07) · Apache 2 license · 0 weekly downloads

## Install

```sh
npm install chrome-js
pnpm add chrome-js
yarn add chrome-js
bun add chrome-js
```

## 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 | 2015-02-07 |
| First published | 2015-02-07 |
| Weekly downloads | 0 |
| License | Apache 2 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 14 |
| Known vulnerabilities | 0 (+2 in 2 direct dependencies) |
| Install scripts | no |
| GitHub stars | 17 |
| Author | Dinis Cruz |
| Maintainers | diniscruz |

## Links

- npm: https://www.npmjs.com/package/chrome-js
- Repository: https://github.com/o2platform/nwr
- Issues: https://github.com/o2platform/nwr/issues
- npm.io page: https://npm.io/package/chrome-js

## Dependencies (14)

- [wd](https://npm.io/package/wd.md) ^0.3.11
- [chai](https://npm.io/package/chai.md) ^1.10.0
- [async](https://npm.io/package/async.md) ^0.9.0
- [juice](https://npm.io/package/juice.md) ^0.5.0
- [mocha](https://npm.io/package/mocha.md) ^2.0.1
- [cheerio](https://npm.io/package/cheerio.md) ^0.18.0
- [request](https://npm.io/package/request.md) ^2.49.0
- [commander](https://npm.io/package/commander.md) ^2.5.0
- [fluentnode](https://npm.io/package/fluentnode.md) *
- [nodewebkit](https://npm.io/package/nodewebkit.md) ^0.11.0
- [coffee-script](https://npm.io/package/coffee-script.md) ^1.8.0
- [chai-as-promised](https://npm.io/package/chai-as-promised.md) ^4.1.1
- [selenium-standalone](https://npm.io/package/selenium-standalone.md) ^2.44.0-1
- [chrome-remote-interface](https://npm.io/package/chrome-remote-interface.md) ^0.5.0

## Recent versions

- 0.2.0 (latest) — 2015-02-07
- 0.1.8 — 2015-02-07

## README

Chrome-JS [![Build Status](https://travis-ci.org/o2platform/chrome-js.svg?branch=master)](https://travis-ci.org/o2platform/chrome-js)
==========

[![NPM](https://nodei.co/npm/chrome-js.png)](https://nodei.co/npm/chrome-js/)

[![NPM](https://nodei.co/npm-dl/chrome-js.png)](https://nodei.co/npm/chrome-js/)

Chrome.js is a set of APIs that help the automations and scripting of
Web based applications (WebSites or WebServices).

There is support for direct chrome access (via chrome debugger API) and
[node-webkit](https://github.com/rogerwang/node-webkit)


### Installation

Using npm:

```
npm install chrome-js --save
```

Directly:

See ["How to run"](https://github.com/o2platform/nwr/issues/34)

For better instructions than the ones shown below.

If you would like to help. [Here is the issue](https://github.com/o2platform/nwr/issues/35) to fix this README :)

----

**(NOTE: these instructions and screenshots are a bit out-of-date with the latest version)**

as per documented at https://github.com/rogerwang/node-webkit/wiki/Chromedriver you need to download the chrome driver for your platform
from http://dl.node-webkit.org/v0.11.2/ and copy it into the ```./node_modules/nodewebkit/nodewebkit``` folder.

In OSx the file to download is the ```chromedriver-nw-v0.11.2-osx-x64``` and you can open the folder to copy the unziped file using ```open ./node_modules/nodewebkit/nodewebkit```

Once that is in place you can start the version with chromedriver support using
```
coffee launch.coffee
```

... which should look like this:

![](https://cloud.githubusercontent.com/assets/656739/5246747/2af2d01c-7964-11e4-8747-3bdac1bda247.png)

and

![](https://cloud.githubusercontent.com/assets/656739/5246763/60e65c2a-7964-11e4-8104-eaaa880d0460.png)

Note: in the current version, when you close the node-webkit window you will need to manually close the ```coffee launch.coffee``` process (since it is still running the
selenium server in the background)

If you want to just open the webkit-repl without chromedriver support, just run

```
./node_modules/.bin/nodewebkit
```

... which should look like this:

![](https://cloud.githubusercontent.com/assets/656739/5246790/a68089ae-7964-11e4-9f0f-175cf9c3bc9c.png)

and

![](https://cloud.githubusercontent.com/assets/656739/5246824/e7fd8814-7964-11e4-8da4-8741b591885f.png)


**more script examples**
See these script examples to ideas on what to run there:  https://gist.github.com/DinisCruz/516417b0e70a2ba5e8bb#file-91-multiple-google-searches-js

**related issues**
[Is there a GUI REPL for node-webkit?](https://github.com/rogerwang/node-webkit/issues/2702)

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