Bixby Developer Center

References

config

Provides access to a capsule's configuration. This includes both values defined in the capsule.properties file and values defined in the Configuration & Secrets screen.

  • Importing with JavaScript Runtime Version 1:
    var config = require('config')
  • Importing with JavaScript Runtime Version 2:
    import config from 'config'

The following sections describe the available methods within this module. Each section includes a table that lists the parameters for that method, as well as the parameter's type and description.

config.get(property)

Look up a property value in the capsule's current configuration mode

Kind: Static method of config
Returns: String - The value of the property in the current configuration mode, or null if no property value is set
Access: Public

ParameterTypeDescription
propertyStringThe property key