get value from the key on stored object. No cast is done. Returns false if no value is found.
get value from the key on stored object. No cast is done. Returns undefined if no value is found.
check if value exist from the key on stored object. Returns false if no value is found.
get value from the key on stored object. value is considered true if truthy, and false if falsey Returns false if no value is found.
initializes a forest instance. please note that if config is not given, the default kv engine is 'kv'
get value from the key on stored object. Result value is considered array. No cast is done. Returns empty array if no value is found.
get value from the key on stored object. Result value is considered the given class. No cast is done. Returned value is undefined if no value is found getAsClass does not create instance. It just maps the value for typing support
gets the resource from a kv engine
get value from the key on stored object. Result value is considered number. No cast is done. Returns 0 if no value is found.
get value from the key on stored object. Result value is considered number array. No cast is done. Returns empty array if no value is found.
get value from the key on stored object. Result value is considered string. No cast is done. Returns empty string if no value is found.
get value from the key on stored object. Result value is considered string array. No cast is done. Returns empty array if no value is found.
initializes global forest instance. please note that if config is not given, the default kv engine is 'kv'
Fetch key value from vault, stores the object in memory, and primes it for getString, getNumber, etc methods
get value from the key on stored object and attempt to parse it. Returns 0 if no value is found or cannot be parsed.
get value from the key on stored object and attempt to parse it. Returns empty string if no value is found.
Generated using TypeDoc
Use either global or instance pattern.
Global Pattern
For using global, init must be called, otherwise will return undefined error when calling other methods.
Example
Instance Pattern
Example