project-bin-config
v1.0.4
Published
API to manage per project configuration
Downloads
1
Readme
project-bin-config
API to manage per project configuration.
It can identify up to three files,
- .local.json
- machines.json
- profiles.json
Install
npm i project-bin-config --save
API
var Config = require('project-bin-config');
new Config().load().get(env).forEach(function(machine){
console.log(machine);
});
Configuration
Create a .local.json
file on root directory of your project.
{
"servers":{
},
"profileData":{
}
}
Create a machines.json
file on root directory of your project.
{
"machine1":{
},
"machine2":{
},
":pool":{
}
}
Create a profiles.json
file on root directory of your project.
{
"profile1":{
},
"profile2":{
}
}