Socket
Socket
Sign inDemoInstall

envdotjs

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

envdotjs - npm Package Compare versions

Comparing version 1.1.8 to 2.0.0

__tests__/test.js

42

package.json
{
"name": "envdotjs",
"version": "1.1.8",
"version": "2.0.0",
"keywords": [

@@ -11,5 +11,3 @@ "envdotjs",

],
"main": "dist-es5/index.js",
"module": "dist-es6/index.js",
"jsnext:main": "dist-es6/index.js",
"main": "dist/index.js",
"bin": {

@@ -25,31 +23,11 @@ "envdotjs": "dist-es5/cli.js"

"scripts": {
"analyze": "cross-env ANALYZE=1 webpack -p",
"build": "run-p build:es5 build:es6",
"build:es6": "cross-env BABEL_ENV=es6 babel ./src --out-dir ./dist-es6",
"build:es5": "cross-env BABEL_ENV=es5 babel ./src --out-dir ./dist-es5",
"prepublishOnly": "npm run test && npm run build",
"relink": "npm unlink && npm run build && npm link",
"test": "npm run build && cross-env BABEL_ENV=es5 mocha --require babel-core/register",
"travis": "opn https://travis-ci.org/escaladesports/envdotjs/branches"
"build": "esca-scripts build",
"prepublishOnly": "npm run build",
"test": "npm run build && esca-scripts test",
"travis": "opn https://travis-ci.org/escaladesports/envdotjs/branches",
"asdf": "babel-node src/cli version"
},
"pre-commit": [
"test"
],
"devDependencies": {
"babel-cli": "^6.26.0",
"babel-core": "^6.26.0",
"babel-loader": "^7.1.2",
"babel-minify-webpack-plugin": "^0.2.0",
"babel-plugin-transform-runtime": "^6.23.0",
"babel-preset-es2015": "^6.24.1",
"babel-preset-es2016": "^6.24.1",
"babel-preset-stage-3": "^6.24.1",
"chai": "^4.1.2",
"cross-env": "^5.1.1",
"mocha": "^4.1.0",
"npm-run-all": "^4.1.2",
"opn-cli": "^3.1.0",
"pre-commit": "^1.2.2",
"webpack": "^3.8.1",
"webpack-bundle-analyzer": "^2.9.1"
"esca-scripts": "^1.3.1",
"opn-cli": "^3.1.0"
},

@@ -59,6 +37,4 @@ "dependencies": {

"fs-extra": "^5.0.0",
"meow": "^4.0.0",
"module": "^1.2.5",
"subcommander": "^1.0.0"
}
}

@@ -43,7 +43,7 @@ # envdotjs

Create a `envdotjs-key` file in the root of your project containing whatever key you want to use. envdotjs will automatically find this file and use it to encrypt and unencrypt the contents of your `env.js` file. Make sure you don't check this file or your `env.js` file into source control.
Create a `env.js.key` file in the root of your project containing whatever key you want to use. envdotjs will automatically find this file and use it to encrypt and unencrypt the contents of your `env.js` file. Make sure you don't check this file or your `env.js` file into source control.
### Setting your key in the environment
You can also set a variable in the environment called `ENVDOTJS_KEY` with the value of your key. If you also have a `envdotjs-key` file and the environment variable set, the environment variable will get used.
You can also set a variable in the environment called `ENVDOTJS_KEY` with the value of your key. If you also have a `env.js.key` file and the environment variable set, the environment variable will get used.

@@ -62,3 +62,3 @@ ### Setting your key with options

- `key`: Sets encryption key. Defaults to process.env.ENVDOTJS_KEY, then contents of envdotjs-key.
- `key`: Sets encryption key. Defaults to process.env.ENVDOTJS_KEY, then contents of env.js.key.
- `path`: Path to your encrypted or unencrypted environment file. Defaults to env.js.enc, then env.js.

@@ -82,3 +82,3 @@

This will encrypt your `env.js` file using the key that's location in your `envdotjs-key` file. For more advanced usage, check for options with `envdotjs --help`
This will encrypt your `env.js` file using the key that's location in your `env.js.key` file. For more advanced usage, check for options with `envdotjs --help`

@@ -88,2 +88,2 @@ ## Best Practices

- Encrypt your `env.js` file any time it changes. This will ensure your development environment matches your deploys.
- Never commit `env.js` or `envdotjs-key` files to source control
- Never commit `env.js` or `env.js.key` files to source control

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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