@absmartly/javascript-client

1.1.1 • Public • Published

A/B Smartly Client npm version

A/B Smartly - JavaScript client for the A/B Smartly Collector.

Note: This package implements a low-level interface to the A/B Smartly Collector Service and is intended to be a building block for higher-level SDKs. If you are looking for the higher-level SDKs, please have a look at one of the following:

Compatibility

The A/B Smartly Javascript Client is an isomorphic library for Node.js (CommonJS and ES6) and browsers (UMD).

It's supported on Node.js version 6.x and npm 3.x or later.

It's supported on IE 10+ and all the other major browsers.

Note: IE 10 does not natively support Promises. If you target IE 10, you must include a polyfill like es6-promise or rsvp.

Installation

npm

npm install @absmartly/javascript-client --save

Import in your Javascript application

const absmartly = require('@absmartly/javascript-client');
// OR with ES6 modules:
import absmartly from '@absmartly/javascript-client';

Directly in the browser

You can include an optimized and pre-built package directly in your HTML code through unpkg.com.

Simply add the following code to your head section to include the latest published version.

    <script src="https://unpkg.com/@absmartly/javascript-client/dist/absmartly.min.js"></script>

Getting Started

Please follow the installation instructions before trying the following code:

Initialization

// somewhere in your application initialization code
const client = new absmartly.Client({
    endpoint: 'https://sandbox.absmartly.io/v1',
    apiKey: process.env.ABSMARTLY_API_KEY,
    environment: process.env.NODE_ENV,
    application: process.env.APPLICATION_NAME,
});

About A/B Smartly

A/B Smartly is the leading provider of state-of-the-art, on-premises, full-stack experimentation platforms for engineering and product teams that want to confidently deploy features as fast as they can develop them. A/B Smartly's real-time analytics helps engineering and product teams ensure that new features will improve the customer experience without breaking or degrading performance and/or business metrics.

Have a look at our growing list of clients and SDKs:

Package Sidebar

Install

npm i @absmartly/javascript-client

Weekly Downloads

11

Version

1.1.1

License

Apache-2.0

Unpacked Size

48.3 kB

Total Files

10

Last publish

Collaborators

  • caltheabtester
  • marcioapm
  • joalves