A PouchDB plugin.
Creates a doc or updates it, but only when necessary.
Good to make sure a design doc is saved on the database at startup time, and that it is updated on the database whenever it is changed on the code.
npm install --save pouchdb-ensure
PouchDBvar db = 'mydb'db