0.1.1 • Published 2 years ago

@partrocks/env v0.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

@partrocks/env

@partrocks/env is a npm package for PartRocks that allows a configured environment to manage and access those environment configs.

Installation

Use the package manager npm to install to node_modules.

npm install @partrocks/env

Usage (nodejs)

import prEnv from "@partrocks/env"

// Retrive settings for Data Services
prEnv.getDataServiceConfigs()
{
  "mongodb": {
    "host": "----MONGO_HOST----",
    "port": "----MONGO_PORT----",
    "username": "----MONGO_USER----",
    "password": "----MONGO_PASSWORD----",
    "dbname": "----MONGO_DB----",
  },
  "mysql": {
    "host": "----MYSQL_HOST----",
    "port": "----MYSQL_PORT----",
    "username": "----MYSQL_USER----",
    "password": "----MYSQL_PASSWORD----",
    "dbnaPme": "----MYSQL_DATABASE----",
  }
}

Contributing

Get in touch info@happycoder.co.uk - We love help.

License

Whats a licence anyway! MIT

0.1.1

2 years ago

0.1.0

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago