project-bin-config

1.0.4 • Public • Published

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":{
  }
}

Readme

Keywords

none

Package Sidebar

Install

npm i project-bin-config

Weekly Downloads

7

Version

1.0.4

License

WTF

Last publish

Collaborators

  • maboiteaspam