# joinednode

> Call your JoinedNode.com recipes from the browser

Latest version **1.0.2** (published 2015-12-24) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install joinednode
pnpm add joinednode
yarn add joinednode
bun add joinednode
```

## Health

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

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2015-12-24 |
| First published | 2015-10-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Author | Joined Node |
| Maintainers | datamcfly |
| Keywords | joinednode, spa, angular, ember, javascript, microservice, backendless |

## Links

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

## Dependencies (2)

- [bluebird](https://npm.io/package/bluebird.md) ^2.9.34
- [superagent](https://npm.io/package/superagent.md) ^1.2.0

## Alternatives

- [@regle/core](https://npm.io/package/@regle/core.md) — 47.0K weekly downloads
- [typeof-arguments](https://npm.io/package/typeof-arguments.md) — 12.5K weekly downloads
- [@lokalise/projects-engine-contracts](https://npm.io/package/@lokalise/projects-engine-contracts.md) — 978 weekly downloads
- [@osjwnpm/nam-laboriosam-quibusdam](https://npm.io/package/@osjwnpm/nam-laboriosam-quibusdam.md) — 70 weekly downloads
- [@oridune/validator](https://npm.io/package/@oridune/validator.md) — 16 weekly downloads

## Recent versions

- 1.0.2 (latest) — 2015-12-24
- 1.0.1 — 2015-10-16

## README

# joinednode-js

Use `joinednode-js` to call your JoinedNode.com recipes from the browser using a require-like pattern. Run node.js code without a backend. 

```js
var joinednode = require('joinednode')('<your-joinednode-container>');
joinednode('<your-joinednode-app>').then(function(result) {
	console.log(result);
});
```

## Install

From [npm](https://npmjs.org):

```sh
npm install joinednode
```

Or our CDN:

```html
<script src="https://cdn.joinednode.com/joinednode.min.js"></script>
```

## Usage

If you haven't created a joinednode.com account yet, you can create one at https://joinednode.com

Once created, this is how you call it:

```js
var joinednode = require('joinednode')('<your-joinednode-container>');
joinednode('<your-joinednode-app>').then(function(result) {
  console.log(result);
});
```

Or from the browser:

```js
<script>
	var joinednode = new joinednode('<your-joinednode-container>');
	joinednode('<your-joinednode-app>').then(function(result) {
	  console.log(result);
	});
</script>
```

### Sending parameters to the joinednode

```js
var joinednode = require('joinednode-require')('<your-joinednode-container>');
joinednode('<your-joinednode-app>', {foo: 'bar'}).then(function(result) {
  console.log(result);
});
```

### Specifying an HTTP method

```js
joinednode.get('<your-joinednode-app>');
joinednode.post('<your-joinednode-app>', { foo: 'bar' });
```

### Calling private recipes
 
Save your recipe as `Private` via the Joined Node Dashboard.

Then create a token via our API:

```bash
$ curl -X POST https://api.joinednode.com/create-token/<your-joinednode-container>
```

Call it using a token obtained from Joined Node:

```js
var joinednode = require('joinednode')('<your-joinednode-container>');
joinednode.withAuth(token)('<your-joinednode-app>').then(function(result) {
	console.log(result);
});
```

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