# @eddiewen/dotenvjson

> Loads environment variables from .json file

Latest version **1.0.1** (published 2018-02-27) · MIT license · 0 weekly downloads

## Install

```sh
npm install @eddiewen/dotenvjson
pnpm add @eddiewen/dotenvjson
yarn add @eddiewen/dotenvjson
bun add @eddiewen/dotenvjson
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2018-02-27 |
| First published | 2018-02-25 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 5.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Eddie Wen |
| Maintainers | eddiewen |
| Keywords | dotenvjson, env, .env, .env.json, environment, variables, config, settings |

## Links

- npm: https://www.npmjs.com/package/@eddiewen/dotenvjson
- Repository: github.com:EddieWen-Taiwan/dotenvjson
- Homepage: https://github.com/EddieWen-Taiwan/dotenvjson
- Issues: https://github.com/EddieWen-Taiwan/dotenvjson/issues
- npm.io page: https://npm.io/package/@eddiewen/dotenvjson

## Alternatives

- [replicas-cli](https://npm.io/package/replicas-cli.md) — 3.0K weekly downloads
- [env-contract](https://npm.io/package/env-contract.md) — 133 weekly downloads
- [@openveo/api](https://npm.io/package/@openveo/api.md) — 61 weekly downloads
- [@ryniaubenpm2/cumque-error-reiciendis](https://npm.io/package/@ryniaubenpm2/cumque-error-reiciendis.md) — 54 weekly downloads
- [ts-global-type-extra](https://npm.io/package/ts-global-type-extra.md) — 11 weekly downloads

## Recent versions

- 1.0.1 (latest) — 2018-02-27
- 1.0.0 — 2018-02-25
- 0.1.1 — 2018-02-25
- 0.1.0 — 2018-02-25

## README

# dotenvjson

[![npm version](https://badge.fury.io/js/%40eddiewen%2Fdotenvjson.svg)](https://badge.fury.io/js/%40eddiewen%2Fdotenvjson)
[![Dependency Status](https://david-dm.org/EddieWen-Taiwan/dotenvjson.svg)](https://david-dm.org/EddieWen-Taiwan/dotenvjson)
[![Standard Version](https://img.shields.io/badge/release-standard%20version-brightgreen.svg?style=flat-square)](https://github.com/conventional-changelog/standard-version)
[![CircleCI](https://circleci.com/gh/EddieWen-Taiwan/dotenvjson.svg?style=shield)](https://circleci.com/gh/EddieWen-Taiwan/dotenvjson)
[![Coverage Status](https://coveralls.io/repos/github/EddieWen-Taiwan/dotenvjson/badge.svg?branch=master)](https://coveralls.io/github/EddieWen-Taiwan/dotenvjson?branch=master)


This is a module to load .json file, like `config.json`, and export variables to `process.env`. Inspired by [dotenv](https://github.com/motdotla/dotenv).

### Installation

```bash
$ yarn add @eddiewen/dotenvjson

# npm install --save @eddiewen/dotenvjson
```

### Usage

Create a `.env.json` file in the root folder of your project.

```javascript
const dotenvjson = require('@eddiewen/dotenvjson');

dotenvjson();
```

And you get `process.env` now.

##### Options

- `path`

Default value: `path.join(process.cwd(), '.env.json')`

You can use a custom config file path.

- `inUpperCase`

Default value: `true`

You don't have to use upper case in config file. Parser transforms them to upper case if this is true. Or spelling names would be kept.

---
_Source: https://npm.io/package/@eddiewen/dotenvjson · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
