Socket
Book a DemoInstallSign in
Socket

@splitsoftware/splitio

Package Overview
Dependencies
Maintainers
2
Versions
521
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@splitsoftware/splitio

Split SDK

Source
npmnpm
Version
0.16.0
Version published
Weekly downloads
281K
-0.29%
Maintainers
2
Weekly downloads
 
Created
Source

SPLIT SDK for NodeJS

This package provides support for NodeJS implementations. demo!.

Usage

  • npm install --save @splitsoftware/splitio
  • Please use the following snippet in your demo app:
const SPLIT_TOKEN = 'epa57jv812r4602iu43no8jm1h';
const splitEngine = require('@splitsoftware/splitio');

splitEngine(SPLIT_TOKEN).then((/* engine ready */) => {
  console.log('Is "my_sample_feature" available? => ', splitEngine.isOn('my_sample_feature') ? 'yes' : 'no');
})
.catch((error) => {
  console.log('Something went wrong while doing the startup of Split');
});

API

isOn(key :string, featureName :string) :boolean

Given a key and a featureName, ask the engine if the feature is available for the given key.

Keywords

rollout

FAQs

Package last updated on 15 Feb 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts