51Degrees Device Detection for Node.js

OptionsExtension Class Reference

Detailed Description

Static Public Member Functions

static getElement (options, elementName)
 Get element by name.
static getDataFilePath (options)
 Get Datafile path.
static setDataFilePath (options, newDataFilePath)
 Set Datafile path.
static updateElementPath (options, appendDir)
 Update Element path.
static getResourceKey (options)
 Get resource Key.
static setResourceKey (options, resourceKey)
 Set resource key.

Member Function Documentation

◆ getDataFilePath()

OptionsExtension::getDataFilePath ( options)
inlinestatic

Get Datafile path.

Parameters
{object}options Options
Returns
{string} Datafile path

◆ getElement()

OptionsExtension::getElement ( options,
elementName )
inlinestatic

Get element by name.

Parameters
{object}options Options
{string}elementName Element name
Returns
{object} Element

◆ getResourceKey()

OptionsExtension::getResourceKey ( options)
inlinestatic

Get resource Key.

Parameters
{object}options Options
Returns
{string} Resource key
Examples
cloud/gettingstarted-console/gettingStarted.js, cloud/gettingstarted-web/gettingStarted.js, and cloud/taclookup-console/tacLookup.js.

◆ setDataFilePath()

OptionsExtension::setDataFilePath ( options,
newDataFilePath )
inlinestatic

Set Datafile path.

Parameters
{object}options Options
{string}newDataFilePath New Datafile path

◆ setResourceKey()

OptionsExtension::setResourceKey ( options,
resourceKey )
inlinestatic

Set resource key.

Parameters
{object}options Options
{string}resourceKey New resource key
Examples
cloud/gettingstarted-console/gettingStarted.js, cloud/gettingstarted-web/gettingStarted.js, and cloud/taclookup-console/tacLookup.js.

◆ updateElementPath()

OptionsExtension::updateElementPath ( options,
appendDir )
inlinestatic

Update Element path.

Parameters
{object}options Options
{string}appendDir New element path