Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Rename `server` to `nano` #186

Merged
merged 1 commit into from

2 participants

@shurane

All other variables to require('nano')('http://localhost:5984') are nano.
It's confusing to call this one variable server.

@shurane shurane Rename `server` to `nano`
All other variables to `require('nano')('http://localhost:5984')` are `nano`.
Doesn't make sense to call it `server`.
289ac5d
@mmalecki mmalecki merged commit 01d17b9 into from
@mmalecki
Collaborator

Merged, thanks Ehtesh!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Feb 23, 2014
  1. @shurane

    Rename `server` to `nano`

    shurane authored
    All other variables to `require('nano')('http://localhost:5984')` are `nano`.
    Doesn't make sense to call it `server`.
This page is out of date. Refresh to see the latest.
Showing with 2 additions and 2 deletions.
  1. +2 −2 README.md
View
4 README.md
@@ -129,8 +129,8 @@ you can also see your document in [futon](http://localhost:5984/_utils).
configuring nano to use your database server is as simple as:
``` js
-var server = require('nano')('http://localhost:5984')
- , db = server.use('foo')
+var nano = require('nano')('http://localhost:5984')
+ , db = nano.use('foo')
;
```
Something went wrong with that request. Please try again.