How to use the nano.use function in nano

To help you get started, we’ve selected a few nano examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github sevcsik / node-couchdb-model / restapi-demo / restapidemo.js View on Github external
}).then(function() {
	var model = new couchDBModel(nano.use(COUCHDB_DB_NAME), {
		restapi: {
			index: true,
			byID: true,
			save: true
		}			
	});

	console.log('Bound REST API to request event');
	server.on('request', model.onRequest);

}, function(error) {
	console.error(error);

nano

The official CouchDB client for Node.js

Apache-2.0
Latest version published 3 months ago

Package Health Score

88 / 100
Full package analysis