Skip to content

Latest commit

 

History

History
14 lines (10 loc) · 419 Bytes

README.md

File metadata and controls

14 lines (10 loc) · 419 Bytes

configuration.reader

configuration.reader for simple reading of configuration file for consumption in JavaScript files.

usage

The module exports a method that returns a configuration object promise.

const config = require('@pentia/configuration-reader')('./solution-config.json');

config.then( configurationObject => {
    // do something with configurationObject once promise resolves.
});