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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.4
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.4
    0
  • 1.0.3
    0
  • 1.0.2
    0
  • 1.0.1
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i configuration.js

Weekly Downloads

0

Version

1.0.4

License

none

Last publish

Collaborators

  • iamthes