Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@busy-web/ember-cli-launch-darkly

Package Overview
Dependencies
Maintainers
4
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@busy-web/ember-cli-launch-darkly

Launch Darkly javascript sdk for ember-cli.

  • 1.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
4
Created
Source

ember-cli-launch-darkly

Ember addon for integrating with launch darkly javascript sdk

Installation

ember install ember-cli-launch-darkly

Usage

The initialize method takes 3 params:

export default Ember.Object.extend({
  launchDarkly: Ember.inject.service(),

  init() {
    this._super();
    let user = {
      key: 'some_value',
      firstName: 'foo',
      lastMame: 'bar',
    };

    let options = {
      // launch darkly options here if needed
    };

    this.get('launchDarkly').initialize('LAUNCH_DARKLY_APP_ID', user, options);
  }
});

After initialize is called then any methods on Launch Darkly's SDK can be called:

  var toggle = this.get('launchDarkly').variation(key, defaultValue);

For more information refer to the launch darkly sdk launch darkly

Contributing

Installation

  • git clone <repository-url>
  • cd ember-cli-launch-darkly
  • yarn install

Linting

  • yarn lint:js
  • yarn lint:js --fix

Running tests

  • ember test – Runs the test suite on the current Ember version
  • ember test --server – Runs the test suite in "watch mode"
  • yarn test – Runs ember try:each to test your addon against multiple Ember versions

Running the dummy application

For more information on using ember-cli, visit https://ember-cli.com/.

License

This project is licensed under the MIT License.

Keywords

FAQs

Package last updated on 03 Apr 2018

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc