### Install @myob-oss/config Source: https://github.com/myob-oss/node-config/blob/master/README.md Installs the configuration module using npm. This is the first step to using the module in your Node.js project. ```bash npm install @myob-oss/config ``` -------------------------------- ### Runtime Configuration Example Source: https://github.com/myob-oss/node-config/blob/master/README.md An example of a runtime configuration file. This file can be used for local development or specific runtime overrides. ```json { "configurationFile": "runtime", "validHosts": ["localhost", "example.com"] } ``` -------------------------------- ### Default Configuration Example Source: https://github.com/myob-oss/node-config/blob/master/README.md An example of a default configuration file in JSON format. This file provides base settings that can be overridden by environment-specific files. ```json { "configurationFile": "default", "disableConsole": false } ``` -------------------------------- ### Production Configuration Example Source: https://github.com/myob-oss/node-config/blob/master/README.md An example of a production-specific configuration file. This file overrides default settings with environment-specific values. ```json { "debugLevel": "trace" } ``` -------------------------------- ### Run Tests Source: https://github.com/myob-oss/node-config/blob/master/README.md Executes the test suite for the configuration module using npm. ```bash npm test ``` -------------------------------- ### Require and Use @myob-oss/config Source: https://github.com/myob-oss/node-config/blob/master/README.md Demonstrates how to require the configuration module and access its properties, such as the configuration file name. ```javascript const config = require('@myob-oss/config'); console.log(config.configurationFile); // prints "runtime" from the example below. ``` -------------------------------- ### Generate Code Coverage Report Source: https://github.com/myob-oss/node-config/blob/master/README.md Runs the coverage scanner and generates a coverage report. The command fails if the configured threshold is not met. ```bash npm run cover ``` -------------------------------- ### Run Linting Check Source: https://github.com/myob-oss/node-config/blob/master/README.md Executes the linting checks to ensure code quality and style consistency. ```bash npm run lint ``` -------------------------------- ### Merged Configuration Result Source: https://github.com/myob-oss/node-config/blob/master/README.md Illustrates the final merged configuration object after applying default, environment, and runtime configurations. ```json { "configurationFile": "runtime", "disableConsole": false, "validHosts": ["localhost", "example.com"], "debugLevel": "trace" } ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.