damjack / elm-newrelic-nreum.js

Typescript library to wrap NewRelic NREUM for elm-newrelic-nreum Elm package

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NewRelic JS Ports reader

Purpose

ElmNewRelic JS library is a wrapper around NewRelic Nreum SDK that support ELM via Ports and standardize the methods that it use to register events

Import

import * as elmNewRelic from 'elm-newrelic-nreum';

const elmApp = Elm.Main.init({
  node: document.getElementById('root'),
  flags: {},
});

elmNewRelic.cspEvent();
elmNewRelic.elmPortsToJS(elmApp);

Commands

Production build:

$ yarn build

Run development:

$ yarn dev

For linting or format code, run:

$ yarn format
$ yarn lint

About

Typescript library to wrap NewRelic NREUM for elm-newrelic-nreum Elm package

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:TypeScript 54.0%Language:JavaScript 46.0%