npm.io
0.0.2 • Published 6 years ago

curli-config

Licence
MIT
Version
0.0.2
Deps
1
Size
32 kB
Vulns
0
Weekly
0
Stars
1

curli-config

Build Status Coverage Status

A small library to load / validate configuration files placed in different sides of the application using environments

Installation

Install by npm

npm install --save curli-config

Basic Usage

import {Config} from "curli-config";

const config = new Config({
            environment: 'local',
            forceValidateSchemas: false,
            filesPaths: {path: __dirname + '/config'}
        });
//get the value from here
const defaultLanguage = config.get("defaultLanguage")
Commands
  • npm run build: Build the project (config).
  • npm run build:clean: Delete first the dist folder and build it.
  • npm run clean: Delete the dist folder.
  • npm run test: Execute the tests.
  • npm run test:coverage: Execute the tests and calculate the coverage.
  • npm run lint: Check the code using the rules in .eslintre.js
  • npm run lint:fix: Check the code and try to fix it.
License

MIT

Keywords