0.0.1 • Published 4 years ago

jacklog-interactor v0.0.1

Weekly downloads
2
License
ISC
Repository
-
Last release
4 years ago

JackLog.io library interactor

Getting Started

  1. Install the project (using npm):
npm install --save jacklog-interactor
  1. Require the file on your project (using a bundler like webpack):
const jacklog = require('jacklog-interactor');
  1. 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