open-index/open-npm huggingface dataset:
npm package: @maarcinporeba/randomid-generator
Description: The "randomID" package is a simple random identifier (ID) generator. Its main purpose is to generate random strings of characters that can be used as unique identifiers for various purposes in applications. The application allows you to provide the desire
Latest version: 1.0.1

# ID-Generator
The "randomID" package is a simple random identifier (ID) generator. Its main purpose is to generate random strings of characters that can be used as unique identifiers for various purposes in applications. The application allows you to provide the desired identifier length and generates a random string of letters and numbers of this length.
npm package: @maarkllc/wolf-tracker
Description: Redux middleware for triggering AEM analytics direct-call rules based on redux actions
Latest version: 1.2.0

[ WIP ]
# Wolf Tracker

[![CircleCI](https://circleci.com/gh/circleci/circleci-docs.svg?style=svg)](https://circleci.com/gh/MAARK/maa-wolf-tracker)

A redux middleware for triggering Adobe Launch direct-call rules. 

### Requirements
- Adobe Launch script must be imported onto the page. This will expose the `_satellite` api to track events.
  - ``If no Launch script is imported the middle ware will not dispatch events``
- Direct call rules and data handlers must be created in Launch. 


## Usage

### wolfTracker 

[For defining events check Events Object](#events-object)

``` javascript
import { createStore, applyMiddleware } from 'redux';
import wolfTracker from '@maarkllc/wolf-tracker'

const EVENTS =  {...}

const middleware = [wolfTracker(EVENTS)]

const store = createStore(rootReducter, applyMiddleware(...middleware));

```

___ 


### Events Object
The Events object is created to map specific Redux actions to Launch events. Each mapping should include the event name to be triggered withing launch and the data to be passed in from the redux store. 


``` javascript
const EVENTS = {
  ADD_TODO: { // redux action being tracked
    event: '' // Launch event to be triggered.
    data: { // Data to be passed into launch.
      foo :'foo.bar.status' //Path to the desired data within the redux store. 
    }
  }
}
```

### trackEvent

``` javascript

  import { trackEvent } from '@maarkllc/wolf-tracker'

  trackEvent({
    event: '[Direct call event]',
    data: {} // data to be tracked 
  })
```