0.1.0 • Published 5 years ago

yaml-to-analytics v0.1.0

Weekly downloads
14
License
MIT
Repository
-
Last release
5 years ago

yaml-to-analytics

A simple utility that helps us define types for the analytics information that goes to Segment. We hope you find it useful as well!

Why use this?

If you've ever done something like...

sendAnalyticsEvent("user signs in", {
    name: "John",
    time: new Date().toString()
});
// ...
sendAnalyticsEvent("usr sings in", {
    name: "John",
    timestamp: new Date().toString()
});

...you know exactly why you need this.

How to use

yarn add -D yaml-to-analytics

Then, check out the example/ directory for a minimum viable kitchen sink example. Basically, create a bunch of YAML files in JSON Schema format and each one will be turned into a function that returns a segment analytics event for their Node SDK.

0.1.0

5 years ago

0.0.10

5 years ago

0.0.9

5 years ago

0.0.8

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago

0.0.0

5 years ago