@ciscospark/plugin-feature

Returns the value of the requested feature toggle.

Stats

stars 🌟issues ⚠️updated 🛠created 🐣size 🏋️‍♀️
@ciscospark/plugin-feature
Minified + gzip package size for @ciscospark/plugin-feature in KB

Readme

getFeature

Returns the value of the requested feature toggle.

Parameters

  • keyType string <developer|user|entitlement>
  • key string
  • options Object
    • options.full boolean to get full feature record including metadata.

Returns (string | boolean | number | FeatureModel | null)

setFeature

Issues request to server to set a value for a feature toggle.

Parameters

Returns Promise Refreshes the local device and resolves with the features endpoint's response.

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.