UNPKG

@segment/analytics.js-core

Version:

The hassle-free way to integrate analytics into any web application.

28 lines (19 loc) 531 B
'use strict'; import { SegmentAnalytics } from './index.d'; /** * Analytics.js * * (C) 2013-2016 Segment.io Inc. */ var Analytics = require('./analytics'); // Create a new `analytics` singleton. var analytics: SegmentAnalytics.AnalyticsJS = new Analytics(); // Expose `require`. // TODO(ndhoule): Look into deprecating, we no longer need to expose it in tests analytics.require = require; // Expose package version. analytics.VERSION = require('../package.json').version; /* * Exports. */ module.exports = analytics;