Chair
Relax, here is a nice comfy chair for your CouchDB.
Install
With npm do
npm install chair
About:
CouchDB module that wraps the clean api of nano and steals a feature from cradle. I found myself including both cradle and nano in a project just to use the easy design document saving of cradle. I decided in order to keep everything minimal, to implement a way to save views, allowing my views to be more reusable and removing the dependency of cradle.
Use Cases:
// Same API as nanovar chair = 'http://localhost:5984/test';
Example design doc (written as a module)
moduleexports = views: findAll: { ; } ;
Design doc can be written as regular javascript and easily added to a database
var designDoc = ; chair;
TODO:
- View saving functions
- Tests
- Docs (Check out nano docs for most of the query functions)
License
MIT
Thanks
To both @dscape and @cloudhead for both of their modules.