Security News
npm Updates Search Experience with New Objective Sorting Options
npm has a revamped search experience with new, more transparent sorting options—Relevance, Downloads, Dependents, and Publish Date.
rox-browser
Advanced tools
Rollout is a Secure Feature Managment Solution for the Enterprise.
Accelerate development and minimize the risk of deploying new code with simple to create feature flags, controlled rollouts, advanced target groups & deployment rules.
Please see the detailed instructions in our docs how to add Rollout to your project.
Getting started guide, use cases, examples and videos can be found at Rollout support site
Rollout client JavaScript SDK for web applications. Define and use simple and advanced feature flags, remote configuration variables, static and computed custom properties in code. Control your application features via Rollout's dashboard.
npm i rox-browser --save
Obtain an application key by registering at Rollout.io.
import Rox from 'rox-browser';
const appSettingsContainer = {
shouldShoWelcome: new Rox.Flag(),
textColor: new Rox.Configuration('black')
};
const onRoxReady = () => {
if (appSettingsContainer.shouldShoWelcome.isEnabled) {
const color = appSettingsContainer.textColor.value
const div = document
.createElement('div')
.textContent('Hello world!')
.setAttribute('style', `color: ${color}`);
const body = document.getElementsByTagName('body')[0]
body.appendChild(div)
}
};
Rox.register('settingsNamespace', appSettingsContainer);
Rox.setup('<app key', {
configurationFetchedHandler: onRoxReady
});
Override the default configuration by prodiving predefined configuration preset for Rox.setup
.
For example:
import Rox from 'rox-browser';
/*
- roxOptions.distinctId
- roxOptions.version
- roxOptions.syncComplitionHandler
*/
const roxOptions = {
distinctId: 'sessionDistinctId',
version: '1.0',
configurationFetchedHandler: () => {}
};
Rox.setup('appKey', roxOptions);
You can overide flags manually using a built-in UI debug utility that can be activated by invoking Rox.showOverrides()
.
Running it will display a UI element that allows to explicitly set values of flags. Available UI location of the UI element:
'top left'
'top right'
'bottom left'
'bottom right' (default)
Rollout client JavaScript SDK is free-to-use, proprietary software. Please see the full license found under the LICENSE file for more details.
Feedback is always welcomed support@rollout.io
FAQs
Rollout.io ROX JS SDK Client
The npm package rox-browser receives a total of 5,733 weekly downloads. As such, rox-browser popularity was classified as popular.
We found that rox-browser demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?
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.
Security News
npm has a revamped search experience with new, more transparent sorting options—Relevance, Downloads, Dependents, and Publish Date.
Security News
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.