@partrocks/env
v0.1.1
Published
Environment Config Extraction for PartRocks services
Downloads
2
Readme
@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 [email protected] - We love help.
License
Whats a licence anyway! MIT