# Patchboard Client for JavaScript

## Usage


```coffee
Client = require "patchboard-js"

# Give Client.discover the URL to a Patchboard API server
Client.discover "http://api.wherever.com/", (error, client) ->
  unless error?
    {users} = client.resources
    users.create {login: "matthew"}, (error, response) ->
      if error
        console.error error
      else
        user.update {email: "matthew@mail.com"}, (error, response) ->
  else
    console.error error
```


# Patchboard Client for JavaScript

## Usage


```coffee
Client = require "patchboard-js"

# Give Client.discover the URL to a Patchboard API server
Client.discover "http://api.wherever.com/", (error, client) ->
  unless error?
    {users} = client.resources
    users.create {login: "matthew"}, (error, response) ->
      unless error?
        user.update {email: "matthew@mail.com"}, (error, response) ->
      else
        console.error error
  else
    console.error error
```


Make error handling code consistent with expected thread first
Make error handling code consistent with expected thread first