# react-runtime

> Include REACT_APP_ environment variables at runtime in your react app.

Latest version **1.1.0** (published 2019-10-17) · ISC license · 0 weekly downloads

## Install

```sh
npm install react-runtime
pnpm add react-runtime
yarn add react-runtime
bun add react-runtime
```

Provides the command `react-runtime`.

## 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.1.0 |
| Published | 2019-10-17 |
| First published | 2019-08-23 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 2.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | alxndrsn |
| Maintainers | alxndrsn |
| Keywords | react, env, vars, environment, variables, runtime |

## Links

- npm: https://www.npmjs.com/package/react-runtime
- Repository: https://github.com/alxndrsn/react-runtime
- Homepage: https://github.com/alxndrsn/react-runtime#readme
- Issues: https://github.com/alxndrsn/react-runtime/issues
- npm.io page: https://npm.io/package/react-runtime

## 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.1.0 (latest) — 2019-10-17
- 1.0.0 — 2019-08-23
- 0.1.4 — 2019-08-23
- 0.1.3 — 2019-08-23
- 0.1.2 — 2019-08-23
- 0.1.1 — 2019-08-23
- 0.1.0 — 2019-08-23
- 0.0.1 — 2019-08-23

## README

react-runtime
=============

Include `REACT_APP_` environment variables at runtime in your react app.

# Get started

	yarn add --dev react-runtime

	# Generate HTML for including in index.html
	./node_modules/.bin/react-runtime html

	# Add the following directly before launching your react app's server
	react-runtime generate > build/react-runtime.env.js

	# Replace all references to process.env in your js source with:
	(e=process.env,e.NODE_ENV === 'production' ? window.reactRuntimeEnv : e)

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