UNPKG

browser-env

Version:

Share process.env variables with the browser

13 lines (12 loc) 283 B
<html> <head> <title>browser-env test</title> <script type="text/javascript" src="build.js"></script> </head> <body> </body> <script type="text/javascript"> var env = require('browser-env'); document.body.innerHTML = '<pre>'+JSON.stringify(env())+'</pre>'; </script> </html>