Skip to content
/ nano-option Public

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

License

Notifications You must be signed in to change notification settings

jo/nano-option

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nano-option

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

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

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •