configuration.js

1.0.4 • Public • Published

configuration.js

Simple configuration management.

INSTALL

npm i configuration.js

USAGE

First variant

var config = require "configuration.js";
config.loadFromFilesSync(file1 [, file2 [, ...]]);

Where file1, ... fileN are javascript-json files.
Javascript-json files means json files but comments and non-quoted keys are allowed.

Second variant

var data = {engine: "sqlite"};
config.loadFromData(data);

TODO

  • save config file

Readme

Keywords

none

Package Sidebar

Install

npm i configuration.js

Weekly Downloads

6

Version

1.0.4

License

none

Last publish

Collaborators

  • iamthes