Skip to content

alexandremottet/confity

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

logo

confity.js

A simple and lightweight library to manager custom configuration for your javascript module in your web application.

usage

set module configuration

  	confiny.setModule("confiny", {
		name:"confiny",
		complex: {
			id: 10,
			value: 10,
			sub: {
				value: "Hello World !"
			}
		}
	});

get module configuration

if you tried to get the configuration of module "lib" and it has not registered its own configuration then a callback function will be called.

	confiny.getModule("lib", function(conf) {
		console.log("lib configuration is get through this callback function");
	});

logo

About

A tiny configuration library for your javascript module.

Resources

License

Stars

Watchers

Forks

Packages

No packages published