Module: @bldr/core-node


Low level classes and functions used by the node packages. Some helper functions etc.


configJson inner

Object to cache the configuration. To avoid reading the configuration file multiple times.


bootstrapConfig (configDefault)object inner

By default this module reads the configuration file /etc/baldr.json to generate its configuration object.

Name Type Description
configDefault object

Default options which gets merged.

Type Description

checkExecutables (executables) inner

Check if some executables are installed. Throws an error if not.

Name Type Description
executables Array | String

An array of executables names or a a single executable as a string.

gitHead () inner

Generate a revision string in the form version-gitshort(-dirty)

log () inner

Wrapper around util.format() and console.log()