hoodie-client-task
client api for asynchronous task queue, using PouchDB for sync
Example
start to: 'john@example.com' subject: 'Ohaj there' body: 'Hey John,\n\nhow are things?\n\n– Jane'
API
var taskQueue = userId options mailQueue = taskQueuetaskQueue mailQueuestartattributes/*, options */mailQueuemailQueuemailQueuemailQueue
Events, same for mailQueue.on / one
and taskQueue.on / one
mailQueuemailQueuemailQueue
Testing
Local setup
git clone git@github.com:hoodiehq/hoodie-client-task.git
cd hoodie-client-task
npm install
Run all tests and code style checks
npm test
Run all tests on file change
npm run test:watch
Run specific tests only
node tests/specs # run unit tests
node tests/specs/get-api # run .getApi() unit tests
node tests/integration/walkthrough # run walkthrough integration test
# PROTIP™ Pipe output through a [pretty reporter](https://www.npmjs.com/package/tape#pretty-reporters)