# client-service-bridge

> Bridge tools for client-service which running on phantomjs environment.

Latest version **0.0.2** (published 2017-05-31) · 0 weekly downloads

## Install

```sh
npm install client-service-bridge
pnpm add client-service-bridge
yarn add client-service-bridge
bun add client-service-bridge
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.2 |
| Published | 2017-05-31 |
| First published | 2017-05-16 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | bottleliu |
| Keywords | phantomjs, client-service, headless browser environment |

## Links

- npm: https://www.npmjs.com/package/client-service-bridge
- Repository: https://github.com/jsCONFIG/client-service-bridge
- Homepage: https://github.com/jsCONFIG/client-service-bridge#readme
- Issues: https://github.com/jsCONFIG/client-service-bridge/issues
- npm.io page: https://npm.io/package/client-service-bridge

## Alternatives

- [replicas-cli](https://npm.io/package/replicas-cli.md) — 3.0K weekly downloads
- [env-contract](https://npm.io/package/env-contract.md) — 133 weekly downloads
- [@openveo/api](https://npm.io/package/@openveo/api.md) — 61 weekly downloads
- [@ryniaubenpm2/cumque-error-reiciendis](https://npm.io/package/@ryniaubenpm2/cumque-error-reiciendis.md) — 54 weekly downloads
- [ts-global-type-extra](https://npm.io/package/ts-global-type-extra.md) — 11 weekly downloads

## Recent versions

- 0.0.2 (latest) — 2017-05-31
- 0.0.1 — 2017-05-16

## README

# client-service-bridge
Bridge tools for "client-service". Running on phantomjs environment.

### Install
```
npm install client-service-bridge
```

### Demo
```
var clientTools = require('client-service-bridge');
var webPage = require('webpage');
var page = webPage.create();

page.viewportSize = {
    width: 1920,
    height: 1080
};

page.open('https://github.com', function (status) {
  var base64 = page.renderBase64('PNG');
  clientTools.send(base64, function (status, res) {
    phantom.exit();
  });
});
```

### API

#### clientTools.send(data, cbk(status, res));
* data: Data which send to node.
* cbk(status, res):
	* status: response status(`success`/`fail`).
	* res: response data.

### CHANGR LOG

* always send request even if the body is empty.

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