<commit_before># node-env-or

[![Build Status](https://magnum.travis-ci.com/Brightspace/node-env-or.svg?token=<KEY>)](https://magnum.travis-ci.com/Brightspace/node-env-or)

Interface for process.env variables that allows setting a default value if none is set

## Usage

```js
const envOr = require('@d2l/env-or');

const MY_VAR = envOr('MY_VAR', 'default_value');
```

## Contributing

1. **Fork** the repository. Committing directly against this repository is highly discouraged.

2. Make your modifications in a branch, updating and writing new tests as necessary in the `test` directory.

3. Ensure that all tests pass with `npm test`

4. `rebase` your changes against master. *Do not merge*.

5. Submit a pull request to this repository. Wait for tests to run and someone to chime in.

## Code Style

This repository is configured with [EditorConfig][EditorConfig], [jscs][jscs]
and [JSHint][JSHint] rules. See the [docs.dev code style article][code style]
for information on installing editor extensions.

[EditorConfig]: http://editorconfig.org/
[jscs]: http://jscs.info/
[JSHint]: http://jshint.com/
[code style]: http://docs.dev.d2l/index.php/JavaScript_Code_Style_(Personal_Learning)
<commit_msg>100% coverage, damn rights we're gonna brag about that<commit_after># node-env-or

[![Build Status](https://magnum.travis-ci.com/Brightspace/node-env-or.svg?token=<KEY>)](https://magnum.travis-ci.com/Brightspace/node-env-or) [![Coverage Status](https://coveralls.io/repos/Brightspace/node-env-or/badge.svg?branch=master&service=github&t=OBtONh)](https://coveralls.io/github/Brightspace/node-env-or?branch=master)

Interface for process.env variables that allows setting a default value if none is set

## Usage

```js
const envOr = require('@d2l/env-or');

const MY_VAR = envOr('MY_VAR', 'default_value');
```

## Contributing

1. **Fork** the repository. Committing directly against this repository is highly discouraged.

2. Make your modifications in a branch, updating and writing new tests as necessary in the `test` directory.

3. Ensure that all tests pass with `npm test`

4. `rebase` your changes against master. *Do not merge*.

5. Submit a pull request to this repository. Wait for tests to run and someone to chime in.

## Code Style

This repository is configured with [EditorConfig][EditorConfig], [jscs][jscs]
and [JSHint][JSHint] rules. See the [docs.dev code style article][code style]
for information on installing editor extensions.

[EditorConfig]: http://editorconfig.org/
[jscs]: http://jscs.info/
[JSHint]: http://jshint.com/
[code style]: http://docs.dev.d2l/index.php/JavaScript_Code_Style_(Personal_Learning)

{'fraction_non_alphanumeric': 0.13101098068913292, 'fraction_numerical': 0.006436955698599016, 'mean_word_length': 4.99092970521542, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 1, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3413168', 'n_tokens_mistral': 863, 'n_tokens_neox': 842, 'n_words': 267}