environmentify
v1.0.2
Published
![GitHub code size in bytes](https://img.shields.io/github/languages/code-size/markwylde/environmentify?style=flat-square) [![GitHub package.json version](https://img.shields.io/github/package-json/v/markwylde/environmentify?style=flat-square)](https://gi
Downloads
8
Readme
environmentify
Replace process.env environment variables when using browserify.
Installation
npm install --save-dev environmentify
Example
export TEST=hello
browserify -t environmentify -o bundled.js index.js
// index.js
console.log(process.env.TEST)
console.log(process.env['TEST'])
console.log(process.env.NOTHING)
// bundled.js
console.log("hello")
console.log("hello")
console.log(undefined)