# cloudbus-client

> Cloud bus client

Latest version **0.0.3** (published 2012-10-18) · 0 weekly downloads

## Install

```sh
npm install cloudbus-client
pnpm add cloudbus-client
yarn add cloudbus-client
bun add cloudbus-client
```

## 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.3 |
| Published | 2012-10-18 |
| First published | 2012-10-07 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | * |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Leandro Boffi |
| Maintainers | leandrob |

## Links

- npm: https://www.npmjs.com/package/cloudbus-client
- Repository: https://github.com/leandrob/cloudbus-client
- npm.io page: https://npm.io/package/cloudbus-client

## Dependencies (1)

- [nssocket](https://npm.io/package/nssocket.md) 0.3.8

## Recent versions

- 0.0.3 (latest) — 2012-10-18
- 0.0.2 — 2012-10-15
- 0.0.1 — 2012-10-07

## README

# CloudBus Node Client 0.1

> Node.js client for cloudbus service.

### Installation

```bash
$ npm install cloudbus-client
```

### Example

```javascript

var bus = require('cloudbus-client');

// 1. Configure...
bus.configure(function() {
	bus.host = "cloudbus.com";
	bus.key = "[your secret key here]";
});

// 2. Add services...
bus.service('/hello', function(req, res) {
	
	res.send("<h1>Welcome to cloudbus!</h1>");
});

bus.service('/hello/world', function(req, res) {
	
	// You can access to the request paramaters!
	var name = req.query.name;

	if (name) {
		res.send("<h1>Hello " + name + "</h1>");
		return;
	}

	res.send("<h1>Hello world!</h1>");
});

// 3. Publish and enjoy!
bus.publish();
```

### License (MIT)

Copyright (c) 2012, Leandro Boffi.

### Author: [Leandro Boffi][0]

[0]: http://github.com/leandrob/

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