{"id":13630847,"url":"https://github.com/pmorjan/couchdb-promises","last_synced_at":"2025-04-17T17:31:49.840Z","repository":{"id":84263394,"uuid":"67358845","full_name":"pmorjan/couchdb-promises","owner":"pmorjan","description":"Yet another Node module for CouchDB that uses ES6 promises. No dependencies.","archived":true,"fork":false,"pushed_at":"2017-03-29T17:32:45.000Z","size":117,"stargazers_count":26,"open_issues_count":2,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-10T20:21:58.558Z","etag":null,"topics":["couchdb","nodejs","promises"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pmorjan.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2016-09-04T17:28:57.000Z","updated_at":"2023-01-28T10:41:52.000Z","dependencies_parsed_at":"2023-05-24T04:30:22.677Z","dependency_job_id":null,"html_url":"https://github.com/pmorjan/couchdb-promises","commit_stats":null,"previous_names":[],"tags_count":26,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pmorjan%2Fcouchdb-promises","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pmorjan%2Fcouchdb-promises/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pmorjan%2Fcouchdb-promises/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pmorjan%2Fcouchdb-promises/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pmorjan","download_url":"https://codeload.github.com/pmorjan/couchdb-promises/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249360019,"owners_count":21257152,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["couchdb","nodejs","promises"],"created_at":"2024-08-01T22:02:00.992Z","updated_at":"2025-04-17T17:31:49.598Z","avatar_url":"https://github.com/pmorjan.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"\n[![JavaScript Style Guide](https://img.shields.io/badge/code%20style-standard-brightgreen.svg)](http://standardjs.com/)\n[![Build Status](https://travis-ci.org/pmorjan/couchdb-promises.svg?branch=master)](https://travis-ci.org/pmorjan/couchdb-promises)\n[![NPM Version](https://img.shields.io/npm/v/couchdb-promises.svg)](https://www.npmjs.com/package/couchdb-promises)\n\n# couchdb-promises\n\n### Yet another Node.js module for CouchDB that uses ES6 promises\n\n*   **no dependencies**\n*   **as simple as possible**\n\nAll Functions return a [**Promise object**](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Promise) whose fulfillment or failure handler receives an object of **5** properties:\n*   **headers**: {Object} - HTTP response headers from CouchDB\n*   **data**: {Object} - CouchDB response body\n*   **status**: {Number} - HTTP status code from CouchDB\n*   **message**: {String} - description of the status code from CouchDB API\n*   **duration**: {Number} - execution time in milliseconds\n\nThe promise is resolved if the [**CouchDB status code**](http://docs.couchdb.org/en/latest/api/basics.html?highlight=status%20codes#http-status-codes) is **\u003c 400** otherwise rejected.\n\n### Installation\n```\nnpm install couchdb-promises\n```\n\n### [Example.js](examples/example.js)\n\n```javascript\nconst db = require('couchdb-promises')({\n  baseUrl: 'http://localhost:5984', // required\n  requestTimeout: 10000\n})\nconst dbName = 'testdb'\n```\n\n#### get info\n```javascript\ndb.getInfo()\n.then(console.log)\n// { headers: { ... },\n//   data:\n//    { couchdb: 'Welcome',\n//      version: '2.0.0',\n//      vendor: { name: 'The Apache Software Foundation' } },\n//   status: 200,\n//   message: 'OK - Request completed successfully'\n//   duration: 36 }\n```\n\n#### create database\n```javascript\ndb.createDatabase(dbName)\n.then(console.log)\n// { headers: { ... },\n//   data: { ok: true },\n//   status: 201,\n//   message: 'Created - Database created successfully',\n//   duration: 131 }\n```\n\n#### get database head\n```javascript\n.then(() =\u003e db.getDatabaseHead(dbName))\n.then(console.log)\n// { headers: { ... },\n//   data: {},\n//   status: 200,\n//   message: 'OK - Database exists',\n//   duration: 4 }\n```\n\n#### list databases\n```javascript\n.then(() =\u003e db.listDatabases())\n.then(console.log)\n// { headers: { ... },\n//   data: [ '_replicator', '_users', 'testdb' ],\n//   status: 200,\n//   message: 'OK - Request completed successfully',\n//   duration: 4 }\n```\n\n#### create document\n```javascript\n.then(() =\u003e db.createDocument(dbName, {name: 'Bob'}))\n.then(console.log)\n// { headers: { ... },\n//   data:\n//    { ok: true,\n//      id: 'daae0752c6909d7ca4cd833f46014605',\n//      rev: '1-5a26fa4b20e40bc9e2d3e47b168be460' },\n//   status: 201,\n//   message: 'Created – Document created and stored on disk',\n//   duration: 42 }\n```\n\n#### create document by id\n```javascript\n.then(() =\u003e db.createDocument(dbName, {name: 'Alice'}, 'doc2'))\n.then(console.log)\n// { headers: { ... },\n//   data:\n//    { ok: true,\n//      id: 'doc2',\n//      rev: '1-88b10f13383b5d1e34d1d66d296f061f' },\n//   status: 201,\n//   message: 'Created – Document created and stored on disk',\n//   duration: 38 }\n```\n\n#### get document head\n```javascript\n.then(() =\u003e db.getDocumentHead(dbName, 'doc2'))\n.then(console.log)\n// { 'cache-control': 'must-revalidate',\n//   connection: 'close',\n//   'content-length': '74',\n//   'content-type': 'application/json',\n//   date: 'Sun, 06 Nov 2016 08:56:47 GMT',\n//   etag: '\"1-88b10f13383b5d1e34d1d66d296f061f\"',\n//   server: 'CouchDB/2.0.0 (Erlang OTP/17)',\n//   'x-couch-request-id': '041e46071b',\n//   'x-couchdb-body-time': '0' },\n//   data: {},\n//   status: 200,\n//   message: 'OK - Document exists',\n//   duration: 6 }\n```\n\n#### get document\n```javascript\n.then(() =\u003e db.getDocument(dbName, 'doc2'))\n.then(response =\u003e { console.log(response); return response.data })\n// { headers: { ... },\n//   data:\n//    { _id: 'doc2',\n//      _rev: '1-88b10f13383b5d1e34d1d66d296f061f',\n//      name: 'Alice' },\n//   status: 200,\n//   message: 'OK - Request completed successfully',\n//   duration: 11 }\n```\n\n#### update document\n```javascript\n.then((doc) =\u003e {\n  doc.age = 42\n  return db.createDocument(dbName, doc, 'doc2')\n})\n.then(console.log)\n// { headers: { ... },\n//   data:\n//    { ok: true,\n//      id: 'doc2',\n//      rev: '2-ee5ea9ac0bb1bec913a9b5e7bc11b113' },\n//   status: 201,\n//   message: 'Created – Document created and stored on disk',\n//   duration: 36 }\n```\n\n#### get all documents\n```javascript\n.then(() =\u003e db.getAllDocuments(dbName, {\n  descending: true,\n  include_docs: true\n}))\n.then(console.log)\n// { headers: { ... },\n//   data: { total_rows: 2, offset: 0, rows: [ [Object], [Object] ] },\n//   status: 200,\n//   message: 'OK - Request completed successfully',\n//   duration: 9 }\n```\n\n#### delete document\n```javascript\n.then(() =\u003e db.deleteDocument(dbName, 'doc2', '2-ee5ea9ac0bb1bec913a9b5e7bc11b113'))\n.then(console.log)\n// { headers: { ... },\n//   data:\n//    { ok: true,\n//      id: 'doc2',\n//      rev: '3-ec0a86a95c5e98a5cd52c29b79b66372' },\n//   status: 200,\n//   message: 'OK - Document successfully removed',\n//   duration: 39 }\n```\n\n#### copy document\n```javascript\n.then(() =\u003e db.copyDocument(dbName, 'doc', 'docCopy'))\n.then(console.log)\n// { headers: { ... },\n//   data:\n//    { ok: true,\n//      id: 'doc3',\n//      rev: '1-4c6114c65e295552ab1019e2b046b10e' },\n//   status: 201,\n//   message: 'Created – Document created and stored on disk',\n//   duration: 42 }\n```\n\n#### bulk create documents\n```javascript\n.then(() =\u003e db.createBulkDocuments(dbName, [\n  {name: 'Tick'}, {name: 'Trick'}, {name: 'Track'}\n], {all_or_nothing: true}))\n.then(console.log)\n// { headers: { ... },\n//   data:\n//   [ { ok: true,\n//       id: '5413cf41edaedaec6b63aee93db86e1f',\n//       rev: '1-d7f23e94e65978ea9252d753fe5dc3f6' },\n//     { ok: true,\n//       id: '5413cf41edaedaec6b63aee93db877cc',\n//       rev: '1-646cd5f84634632f42fee2bdf4ff753a' },\n//     { ok: true,\n//       id: '5413cf41edaedaec6b63aee93db87c3d',\n//       rev: '1-9cc8cf1e775b686ca337f69cd39ff772' } ],\n//   status: 201,\n//   message: 'Created – Document(s) have been created or updated',\n//   duration: 74 }\n```\n\n#### find documents (requires CouchDB \u003e= 2.0.0)\n```javascript\n.then(() =\u003e db.findDocuments(dbName, {\n  selector: {\n    $or: [{ name: 'Tick' }, {name: 'Track'}]\n  },\n  fields: ['_id', 'name']\n}))\n.then(console.log)\n// { headers: { ... },\n//   data:\n//    { warning: 'no matching index found, create an index to optimize query time',\n//      docs: [ [Object], [Object] ] },\n//   status: 200,\n//   message: 'OK - Request completed successfully',\n//   duration: 14 }\n```\n\n#### get uuids\n```javascript\n.then(() =\u003e db.getUuids(3))\n.then(console.log)\n// { headers: { ... },\n//   data:\n//    { uuids:\n//       [ 'daae0752c6909d7ca4cd833f46014c47',\n//         'daae0752c6909d7ca4cd833f460150c5',\n//         'daae0752c6909d7ca4cd833f460156c5' ] },\n//   status: 200,\n//   message: 'OK - Request completed successfully',\n//   duration: 4 }\n```\n\n#### delete database\n```javascript\n.then(() =\u003e db.deleteDatabase(dbName))\n.then(console.log)\n// { headers: { ... },\n//   data: { ok: true },\n//   status: 200,\n//   message: 'OK - Database removed successfully' }\n//   duration: 40 }\n```\n#### run generic HTTP GET request\n```javascript\n.then(() =\u003e db.getUrlPath('_all_dbs'))\n.then(console.log)\n// { headers: { ... },\n//  data: [ '_replicator', '_users' ],\n//  status: 200,\n//  message: 'OK',\n//  duration: 6 }\n```\n\n#### on error\n```javascript\n.then(() =\u003e db.getDocument(dbName, 'doc1'))\n.catch(console.error)\n// { headers: { ... },\n//   data: { error: 'not_found', reason: 'Database does not exist.' },\n//   status: 404,\n//   message: 'Not Found - Document not found',\n//   duration: 5 }\n```\n\n---\n\n### View and Design Functions ([View.js](examples/view.js))\n\n#### create design document\n```javascript\nconst ddoc = {\n  language: 'javascript',\n  views: { view1: { map: 'function (doc) {emit(doc.name, doc.number)}' } }\n}\nconst docId = 'ddoc1'\n\ndb.createDesignDocument(dbName, ddoc, docId)\n.then(console.log)\n// { headers: { ... },\n//   data:\n//    { ok: true,\n//      id: '_design/ddoc1',\n//      rev: '1-548c68d8cc2c1fac99964990a58f66fd' },\n//   status: 201,\n//   message: 'Created – Document created and stored on disk',\n//   duration: 271 }\n```\n\n#### get design document\n```javascript\ndb.getDesignDocument(dbName, docId)\n.then(console.log)\n// { headers: { ... },\n//   data:\n//    { _id: '_design/ddoc1',\n//      _rev: '1-548c68d8cc2c1fac99964990a58f66fd',\n//      language: 'javascript',\n//      views: { view1: [Object] } },\n//   status: 200,\n//   message: 'OK - Request completed successfully',\n//   duration: 5 }\n```\n\n#### get design document info\n```javascript\ndb.getDesignDocumentInfo(dbName, docId)\n.then(console.log)\n// { headers: { ... },\n//   data:\n//   { name: 'ddoc1',\n//     view_index:\n//      { updates_pending: [Object],\n//        waiting_commit: false,\n//        waiting_clients: 0,\n//        updater_running: false,\n//        update_seq: 0,\n//        sizes: [Object],\n//        signature: '1e86d92af43c47ef58da4b645dbd47f1',\n//        purge_seq: 0,\n//        language: 'javascript',\n//        disk_size: 408,\n//        data_size: 0,\n//        compact_running: false } },\n//   status: 200,\n//   message: 'OK - Request completed successfully',\n//   duration: 54 }\n```\n\n#### get view\n```javascript\ndb.getView(dbName, docId, viewName, {limit: 3})\n.then(console.log)\n// { headers: { ... },\n//   data:\n//    { total_rows: 12,\n//      offset: 0,\n//      rows: [ [Object], [Object], [Object] ] },\n//   status: 200,\n//   message: 'OK - Request completed successfully',\n//   duration: 834 }\n```\n\n#### delete design document\n```javascript\ndb.deleteDesignDocument(dbName, docId, rev)\n.then(console.log)\n// { headers: { ... },\n//   data:\n//    { ok: true,\n//      id: '_design/ddoc1',\n//      rev: '2-fd68157ec3c1915ebe0b248343292d34' },\n//   status: 200,\n//   message: 'OK - Document successfully removed',\n//   duration: 49 }\n```\n\n### Update Handler Functions ([update-handler.js](examples/update-handler.js))\n\n#### execute update function\n```javascript\ndb.executeUpdateFunction(dbName, ddocId, func, queryObj)\n```\n\n#### execute update function for document\n```javascript\ndb.executeUpdateFunctionForDocument(dbName, ddocId, func, queryObj, docId)\n// { headers: { ... },\n//   status: 201,\n//   data: { text: 'added 10' },\n//   message: 'Created - Document was created or updated',\n//   duration: 49 }\n\n```\n\n---\n\n### Index Functions ([index.js](examples/index.js))\n#### CouchDB \u003e= 2.0\n\n### create index\n```javascript\ndb.createIndex(dbName, {\n  index: {\n    fields: ['foo']\n  },\n  name: 'foo-index'\n})\n.then(console.log)\n// { headers: { ... },\n//   data:\n//    { result: 'exists',\n//      id: '_design/a5f4711fc9448864a13c81dc71e660b524d7410c',\n//      name: 'foo-index' },\n//   status: 200,\n//   message: 'OK - Index created successfully or already exists',\n//   duration: 14 }\n```\n\n### get index\n```javascript\ndb.getIndex(dbName)\n.then(console.log)\n// { headers: { ... },\n//   data: { total_rows: 2, indexes: [ [Object], [Object] ] },\n//   status: 200,\n//   message: 'OK - Success',\n//   duration: 6 }\n```\n\n### delete index\n```javascript\ndb.getIndex(dbName)\n.then(response =\u003e {\n  const docId = response.data.indexes.find(e =\u003e e.name === 'foo-index').ddoc\n  return db.deleteIndex(dbName, docId, 'foo-index')\n})\n.then(console.log)\n// { headers: { ... },\n//  data: { ok: true },\n//  status: 200,\n//  message: 'OK - Success',\n//  duration: 45 }\n```\n\n---\n\n# API Reference\n\nSee [examples](examples/) for details.\n\n## configuration\n#### db = couchdb-promises(options)\nThe options object has the following properties:\n*   baseUrl: String -  e.g. 'http://localhost:5984' (required)\n*   requestTimeout: Number=10000  -  http request timeout in milliseconds\n*   verifyCertificate: Boolean=true - verify server SSL certificate (https only)\n\n## database functions\n#### db.createDatabase( dbName )\ncreate new database\n\u003cbr\u003e\n[[CouchDB API]](http://docs.couchdb.org/en/latest/api/database/common.html#put--db)\n[[example]](examples/example.js)\n\n#### db.getDatabase( dbName )\nget information about the specified database\n\u003cbr\u003e\n[[CouchDB API]](http://docs.couchdb.org/en/latest/api/database/common.html#get--db)\n[[example]](examples/example.js)\n\n#### db.getDatabaseHead( dbName )\nget minimal amount of information about the specified database\n\u003cbr\u003e\n[[CouchDB API]](http://docs.couchdb.org/en/latest/api/database/common.html#head--db)\n[[example]](examples/example.js)\n\n#### db.deleteDatabase( dbName )\ndelete the specified database\n\u003cbr\u003e\n[[CouchDB API]](http://docs.couchdb.org/en/latest/api/database/common.html#delete--db)\n[[example]](examples/example.js)\n\n#### db.listDatabases()\nget list of all databases\n\u003cbr\u003e\n[[CouchDB API]](http://docs.couchdb.org/en/latest/api/server/common.html#get--_all_dbs)\n[[example]](examples/example.js)\n\n#### db.findDocuments( dbName, queryObj )\nfind documents using a declarative JSON querying syntax (CouchDB \u003e= 2.0)\n\u003cbr\u003e\n[[CouchDB API]](http://docs.couchdb.org/en/latest/api/database/find.html#db-find)\n[[example]](examples/example.js)\n\n## document functions\n#### db.getAllDocuments( dbName, \\[queryObj] )\nreturns a JSON structure of all of the documents in a given database\n\u003cbr\u003e\n[[CouchDB API]](http://docs.couchdb.org/en/latest/api/database/bulk-api.html#db-all-docs)\n[[example]](examples/example.js)\n\n#### db.createDocument( dbName, doc )\ncreate a new document\n\u003cbr\u003e\n[[CouchDB API]](http://docs.couchdb.org/en/latest/api/database/common.html#post--db)\n[[example]](examples/example.js)\n\n#### db.createDocument( dbName, doc, \\[docId] )\ncreate a new document or a new revision of the existing document.\n\u003cbr\u003e\n[[CouchDB API]](http://docs.couchdb.org/en/latest/api/document/common.html#put--db-docid)\n[[example]](examples/example.js)\n\n#### db.deleteDocument( dbName, docId, rev )\nmarks the specified document as deleted\n\u003cbr\u003e\n[[CouchDB API]](http://docs.couchdb.org/en/latest/api/document/common.html#delete--db-docid)\n[[example]](examples/example.js)\n\n#### db.getDocument( dbName, docId, \\[queryObj] )\nget document by the specified docId\n\u003cbr\u003e\n[[CouchDB API]](http://docs.couchdb.org/en/latest/api/document/common.html#get--db-docid)\n[[example]](examples/example.js)\n\n#### db.getDocumentHead(dbName, docId, \\[queryObj])\nget a minimal amount of information about the specified document\n\u003cbr\u003e\n[[CouchDB API]](http://docs.couchdb.org/en/latest/api/document/common.html#db-doc)\n[[example]](examples/example.js)\n\n#### db.copyDocument(dbName, docId, newDocId)\ncopy an existing document to a new document\n\u003cbr\u003e\n[[CouchDB API]](https://wiki.apache.org/couchdb/HTTP_Document_API#COPY)\n\n## index functions\n#### db.createIndex( dbName, queryObj )\ncreate database index\n(CouchDB \u003e= 2.0)\n\u003cbr\u003e\n[[CouchDB API]](http://docs.couchdb.org/en/latest/api/database/find.html#db-index)\n\n#### db.getIndex( dbName )\nget all database indexes\n(CouchDB \u003e= 2.0)\n\u003cbr\u003e\n[[CouchDB API]](http://docs.couchdb.org/en/latest/api/database/find.html#get--db-_index)\n\n#### db.deleteIndex( dbName, docId, name )\ndelete database index\n(CouchDB \u003e= 2.0)\n\u003cbr\u003e\n[[CouchDB API]](http://docs.couchdb.org/en/latest/api/database/find.html#delete--db-_index-designdoc-json-name)\n\n\n## document attachment functions\n#### db.addAttachment( dbName, docId, attName, rev, contentType, data )\nupload the supplied data as an attachment to the specified document\n\u003cbr\u003e\n[[CouchDB API]](http://docs.couchdb.org/en/latest/api/document/attachments.html#put--db-docid-attname)\n[[example]](examples/attachment.js)\n\n#### db.getAttachment( dbName, docId, attachmentName, writeStream, \\[rev] )\nget the attachment associated with the document\n\u003cbr\u003e\n[[CouchDB API]]( http://docs.couchdb.org/en/latest/api/document/attachments.html#get--db-docid-attname) [[example]](examples/attachment-stream.js)\n\n#### db.getAttachmentHead( dbName, docName, docId, attachmentName, \\[rev] )\nget minimal amount of information about the specified attachment\n\u003cbr\u003e\n[[CouchDB API]](http://docs.couchdb.org/en/latest/api/document/attachments.html#db-doc-attachment)\n[[example]](examples/attachment-stream.js)\n\n#### db.deleteAttachment( dbName, docId, attachmentName, rev )\ndeletes the attachment attachment of the specified doc\n\u003cbr\u003e\n[[CouchDB API]](http://docs.couchdb.org/en/latest/api/document/attachments.html#delete--db-docid-attname)\n[[example]](examples/attachment.js)\n\n## view and design document functions\n#### db.createDesignDocument( dbName, doc, docId )\ncreate new design document or new revision of an existing design document\n\u003cbr\u003e\n[[CouchDB API]](http://docs.couchdb.org/en/latest/api/ddoc/common.html#put--db-_design-ddoc)\n[[example]](examples/view.js)\n\n#### db.deleteDesignDocument( dbName, doc, docId, rev)\ndelete design document\n\u003cbr\u003e\n[[CouchDB API]](http://docs.couchdb.org/en/latest/api/ddoc/common.html#delete--db-_design-ddoc)\n[[example]](examples/view.js)\n\n#### db.getDesignDocument( dbName, docId, queryObj )\nget the contents of the design document\n\u003cbr\u003e\n[[CouchDB API]](http://docs.couchdb.org/en/latest/api/ddoc/common.html#get--db-_design-ddoc)\n[[example]](examples/view.js)\n\n#### db.getDesignDocumentInfo( dbName, docId )\nobtain information about the specified design document, including the index, index size and current status of the design document and associated index information\n\u003cbr\u003e\n[[CouchDB API]](http://docs.couchdb.org/en/latest/api/ddoc/common.html#db-design-design-doc-info)\n[[example]](examples/view.js)\n\n#### db.getView( dbName, docId, viewName, queryObj )\nexecute the specified view function from the specified design document\n\u003cbr\u003e\n[[CouchDB API]](http://docs.couchdb.org/en/latest/api/ddoc/views.html#db-design-design-doc-view-view-name)\n[[example]](examples/view.js)\n\n## bulk document functions\n#### db.createBulkDocuments( dbName, docs, opts )\ncreate or update multiple documents at the same time within a single request\n\u003cbr\u003e\n[[CouchDB API]](http://docs.couchdb.org/en/latest/api/database/bulk-api.html#db-bulk-docs)\n[[example]](examples/example.js)\n\n## miscellaneous functions\n#### db.getInfo()\nget meta information about the CouchDB server\n\u003cbr\u003e\n[[CouchDB API]](http://docs.couchdb.org/en/latest/api/server/common.html#get--)\n[[example]](examples/example.js)\n\n#### db.getUuids( count )\nget one or more Universally Unique Identifiers (UUIDs) from the CouchDB server\n\u003cbr\u003e\n[[CouchDB API]](http://docs.couchdb.org/en/latest/api/server/common.html#uuids)\n[[example]](examples/example.js)\n\n#### db.getUrlPath( path )\ngeneric http GET request function\n\u003cbr\u003e[[example]](examples/example.js)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpmorjan%2Fcouchdb-promises","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpmorjan%2Fcouchdb-promises","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpmorjan%2Fcouchdb-promises/lists"}