2.1.75 • Published 1 year ago

testebrenoteste v2.1.75

Weekly downloads
-
License
LGPL-3.0-only
Repository
github
Last release
1 year ago

How to use

We need to configure the environment for Mozz work, first, let's create the mozz.profile.json file in the root of the project. Let's set up two environments, one for development and one for production using the following code:

{
    "environments": {
        "production": {
            "hostname": "0.0.0.0"
        },
        "development": {
            "hostname": "localhost"
        }
    }
}

We will also configure the variable MOZZ_ENV in .env so the library knows which environment we are wanting:

MOZZ_ENV="development"

Now, we can move on to the code, just import Mozz and create a instance to access your environment settings

const Mozz = require('mozz.env')
const Enhancer = new Mozz()

Enhancer.env.hostname // localhost
2.1.75

1 year ago

2.1.69

1 year ago

2.1.62

1 year ago

2.1.9

1 year ago

2.1.8

1 year ago

2.1.7

1 year ago

2.1.6

1 year ago

2.1.5

1 year ago

2.1.4

1 year ago

2.1.3

1 year ago

2.1.2

1 year ago