Massive getter by ID for CouchDB, with multiple collections
In order to install, simply use npm.
npm i couchdb-dispatcher
Then, import it in you file.
Dispatcher can hold two differents use cases: Dispatch into differents collection according to IDs, or serve access to a collection with a specific URL.
Dispatch into collections
According to some ID patterns, you can choose in which collection you want to fetch from.
;// Set accepters;// Set URL;// Create object;// Create a route that listen to requestroutes.set