0.0.1 • Published 6 years ago
jacklog-interactor v0.0.1
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 installTest
npm testBuild (dev mode)
npm run build0.0.1
6 years ago