npm

Ready to take your JavaScript development to the next level? Meet npm Enterprise - the ultimate in enterprise JavaScript. Learn more »

nano-option

1.3.0 • Public • Published

nano-option

Create a nano adapter if option is not already a nano adapter. Also set X-Couch-Full-Commit header.

BuildStatus

Used within the couchdb-bootstrap suite.

Usage

var nanoOption = require('nano-option')
 
// This is all equivalent:
nanoOption('http://localhost:5984/mydb')
nanoOption(require('nano')('http://localhost:5984/mydb'))
nanoOption({
  url: 'http://localhost:5984/mydb',
  requestDefaults: {
    proxy: 'http://someproxy'
  }
})

Tests

npm test

install

npm i nano-option

Downloadsweekly downloads

870

version

1.3.0

license

Apache-2.0

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability