conify

1.0.0 • Public • Published

Conify

Conify is a simple NPM package that simplifies the process of managing multiple configuration files

Installation

npm install conify --save

Usage

const Conify = require('conify');

// The directory of your config files
var config = new Conify('./config');

// Get the property "bar" from the file "config/foo.json"
config.get('foo.bar');

Good To Know

Customize Config Name

// config/foo.json
{
	"conify_name": "test",
	"port": 5000
}

// index.js
const Conify = require('conify');

var config = new Conify('./config');

config.get('test.port'); // 5000
config.get('foo.port'); // null

Example Structure

config
+-- foo.json
+-- bar.json
index.js

Contributing

Pull requests are welcome.

Readme

Keywords

Package Sidebar

Install

npm i conify

Weekly Downloads

5

Version

1.0.0

License

ISC

Unpacked Size

2.1 kB

Total Files

3

Last publish

Collaborators

  • pixeldoggo