UNPKG

atom-nuclide

Version:

A unified developer experience for web and mobile development, built as a suite of features on top of Atom to provide hackability and the support of an active community.

23 lines (17 loc) 528 B
# nuclide-analytics package Provides a standard API that packages can use to send analytics, in a consistent way, to arbitrary providers. Common usage: ```js import {track} from 'nuclide-analytics'; const booleanState = false; const numericState = 42; const stringState = 'foobar'; function doStuff(arg: string) { // Note that all metadata values on the second argument must be strings. track('example-package-doStuff', { bool: String(booleanState), num: String(numericState), str: stringState, }); } ```