New: Introducing PHP and Composer Support.Read the Announcement
Socket
Book a DemoInstallSign in
Socket

embed-react-app-envs

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

embed-react-app-envs

Script for embedding environment variable in CRA apps without having to rebuild the on the server.

Source
npmnpm
Version
0.0.1
Version published
Weekly downloads
16
700%
Maintainers
1
Weekly downloads
 
Created
Source

Script for embedding environment variable in CRA apps without having to rebuild the on the server.

Home - Documentation

Install / Import

$ npm install --save embed-react-app-envs
import { myFunction, myObject } from "embed-react-app-envs";

Specific imports:

import { myFunction } from "embed-react-app-envs/myFunction";
import { myObject } from "embed-react-app-envs/myObject";

Import from HTML, with CDN

Import it via a bundle that creates a global ( wider browser support ):

<script src="//unpkg.com/embed-react-app-envs/bundle.min.js"></script>
<script>
    const { myFunction, myObject } = embed_react_app_envs;
</script>

Or import it as an ES module:

<script type="module">
    import { myFunction, myObject } from "//unpkg.com/embed-react-app-envs/zz_esm/index.js";
</script>

You can specify the version you wish to import: unpkg.com

Contribute

npm install
npm run build
npm test

FAQs

Package last updated on 13 Mar 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts