Have ideas to improve npm?Join in the discussion! »

    nano-option

    2.0.1 • Public • Published

    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

    Install

    npm i nano-option

    DownloadsWeekly Downloads

    495

    Version

    2.0.1

    License

    Apache-2.0

    Unpacked Size

    6.8 kB

    Total Files

    7

    Last publish

    Collaborators

    • avatar