Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

envkey-webpack-plugin

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

envkey-webpack-plugin - npm Package Compare versions

Comparing version 1.1.2 to 2.0.4

sdkwebpack-version.txt

12

package.json
{
"name": "envkey-webpack-plugin",
"version": "1.1.2",
"version": "2.0.4",
"description": "Use envkey as a webpack plugin.",

@@ -11,3 +11,3 @@ "main": "index.js",

"type": "git",
"url": "git+https://github.com/envkey/envkey-webpack-plugin.git"
"url": "git+https://github.com/envkey/envkey.git"
},

@@ -22,10 +22,10 @@ "keywords": [

],
"author": "Dane Schneider <dane@envkey.com> (https://www.envkey.com)",
"author": "EnvKey <support@envkey.com> (https://www.envkey.com)",
"license": "MIT",
"bugs": {
"url": "https://github.com/envkey/envkey-webpack-plugin/issues"
"url": "https://github.com/envkey/envkey/issues"
},
"homepage": "https://github.com/envkey/envkey-webpack-plugin#readme",
"homepage": "https://github.com/envkey/envkey/public/sdks/languages-and-frameworks/envkey-webpack-plugin#readme",
"dependencies": {
"envkey": "^1.2.9"
"envkey": "^2.0.5"
},

@@ -32,0 +32,0 @@ "peerDependencies": {

## envkey-webpack-plugin
A webpack plugin that wraps [EnvKey's](https://www.envkey.com) [Node.js library](https://www.github.com/envkey/envkey-node) so you can easily inject whitelisted configuration into your browser apps.
A webpack plugin that wraps [EnvKey's](https://www.envkey.com) [Node.js library](https://www.github.com/envkey/envkey-node) so you can easily inject allow-listed configuration into your browser apps.
All vars will be available on `process.env` in the browser.
To make `process.env.NODE_ENV` available, just add it to the `permitted` whitelist (see below).
To make `process.env.NODE_ENV` available, just add it to the `permitted` allow-list (see below).

@@ -16,4 +16,4 @@ ## Install

```javascript
var webpack = require('webpack'),
EnvkeyWebpackPlugin = require('envkey-webpack-plugin');
var webpack = require("webpack"),
EnvkeyWebpackPlugin = require("envkey-webpack-plugin");

@@ -25,14 +25,12 @@ module.exports = {

new EnvkeyWebpackPlugin({
permitted: ["STRIPE_PUBLISHABLE_KEY", "PUSHER_APP_KEY", "NODE_ENV"], // required, specify allow-list of vars to pull from Envkey -- you can also include "NODE_ENV" to make that available
permitted: ["STRIPE_PUBLISHABLE_KEY", "PUSHER_APP_KEY", "NODE_ENV"], // required, specify whitelist of vars to pull from Envkey -- you can also include "NODE_ENV" to make that available
dotEnvFile: ".env", // optional, specify alternate dotenv file path like ".env.staging" -- file should include valid ENVKEY variable
define: {ANOTHER_VAR: "anotherVal"} // optional, set additional vars on `process.env`
define: { ANOTHER_VAR: "anotherVal" }, // optional, set additional vars on `process.env`
}),
],
})
]
//...
}
//...
};
```
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc