Dynamic module nconf

Index

Variables

Enumerations

Interfaces

Classes

Functions

Variables

sources: Array<any>

stores: any

version: number

Functions

add(name: string, options?: IOptions): Provider

Parameters

  • name: string
  • options?: IOptions optional

Returns

Provider

argv(options?: IOptions): Provider

Parameters

Returns

Provider

clear(key: string, callback?: ICallbackFunction): any

Parameters

Returns

any

create(name: string, options: IOptions): IStore

Parameters

Returns

IStore

defaults(options?: IOptions): Provider

Parameters

Returns

Provider

env(options?: IOptions): Provider

Parameters

Returns

Provider

file(name: string, options?: IFileOptions): Provider

Parameters

Returns

Provider

file(options: IFileOptions): Provider

Parameters

Returns

Provider

get(key: string, callback?: ICallbackFunction): any

Parameters

Returns

any

init(options?: IOptions)

Parameters

key(values?: Array<any>): string

Parameters

  • values?: Array<any> optional

Returns

string

load(callback?: ICallbackFunction): any

Parameters

Returns

any

loadFiles(files: any, callback?: ICallbackFunction)

Parameters

loadFilesSync(files: any, callback?: ICallbackFunction)

Parameters

loadSources(): any

Returns

any

merge(key: string, value: any, callback?: ICallbackFunction): any

Parameters

Returns

any

mergeSources(data: any)

Parameters

  • data: any

overrides(options?: IOptions): Provider

Parameters

Returns

Provider

path(key: any): Array<any>

Parameters

  • key: any

Returns

Array<any>

remove(name: string)

Parameters

  • name: string

reset(callback?: ICallbackFunction): any

Parameters

Returns

any

save(value: any, callback?: ICallbackFunction): any

Parameters

Returns

any

set(key: string, value: any, callback?: ICallbackFunction): any

Parameters

Returns

any

use(name: string, options?: IOptions): Provider

Parameters

  • name: string
  • options?: IOptions optional

Returns

Provider