optimizely-client-sdk
v1.6.0
Published
JavaScript SDK for Optimizely X Full Stack
Downloads
10,097
Readme
Optimizely JavaScript SDK
This repository houses the JavaScript SDK for Optimizely X Full Stack.
Getting Started
Installing the SDK
The SDK is available through npm. To install:
npm install optimizely-client-sdk --save
Or to use in a non CommonJS fashion:
- Run
npm run build
- Pull in
dist/optimizely.min.js
as a<script>
- Use as global variable
window.optimizelyClient
Using the SDK
See the Optimizely X Full Stack testing developer documentation to learn how to set up your first JavaScript project and use the SDK.
Development
Installing dependencies
npm install
Unit tests
You can run all unit tests with:
npm test
Contributing
Please see CONTRIBUTING.