jacklog-interactor
v0.0.1
Published
Interactor with Jacklog system
Downloads
1
Readme
JackLog.io library interactor
Getting Started
- Install the project (using
npm
):
npm install --save jacklog-interactor
- Require the file on your project (using a bundler like
webpack
):
const jacklog = require('jacklog-interactor');
- Send an action:
const action = {
name: 'super-awesome-action-event',
// properties is not required but when in, it needs to be an object
properties: {
// you can send here whatever you want...
userId: 'zed'
}
};
// since the system debounces, send action promise resolve
// will return all the actions that went through
const sentActions = await jacklog.sendAction(
action.name,
action.properties
);
Development
Prerequisites
Install dependencies
npm install
Test
npm test
Build (dev mode)
npm run build