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

env-cmd

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

env-cmd - npm Package Compare versions

Comparing version 9.0.1 to 9.0.2

23

CHANGELOG.md
# Changelog
## 9.0.2
- **Fix**: CLI will now exit with non-zero error code when an error is encountered (thanks to blagh)
## 9.0.1
- **BREAKING**: Fixed major bug that required passing `--` inorder to pass flags to the command.
- **BREAKING**: Fixed major bug that required passing `--` in order to pass flags to the command.
Normally I release major breaking changes as major versions, but this was a bug and no documentation

@@ -10,2 +16,3 @@ anywhere states using `--` as intended or official behavior.

## 9.0.0
- ***BREAKING***: Converted project to Typescript

@@ -24,8 +31,11 @@ - ***BREAKING***: Changes to all option flags, see docs for new options

## 8.0.2
- **Change**: Updated dependencies and packages.json to fix `npm audit` concerns.
## 8.0.1
- **Bug**: Properly propagate child process exit signals and codes to parent process
## 8.0.0
- ***BREAKING***: Stripe out spaces around the `key` and `value` in an env file. In order to include a beginning/ending space in an env var value, you need to surround the value in double or single quotes. `ENV = " Value"`

@@ -36,2 +46,3 @@ - **Bug**: Fixed some bugs around how the parent process and spawn processes are killed

## 7.0.0
- ***BREAKING***: The `.env` file path resolving has been changed to allow for absolute pathing, relative pathing, and `~` home directory pathing. Please

@@ -41,2 +52,3 @@ see Readme.md for more info about how the new pathing conventions work.

## 6.0.0
- ***BREAKING***: Fallback to default `.env` file behavior is no longer the default behavior. You must specify `--fallback` option for that behavior now.

@@ -52,2 +64,3 @@ - ***BREAKING***: A specific node version has been set in package.json. Current minimum version is `>=4.0.0`. *Note: the implied minimum version

## 5.1.0
- **Feature**: Added new option `--no-override` that when passed will make it so that the env file

@@ -58,2 +71,3 @@ vars will not overwrite already defined env vars on `process.env` or in the shell

## 5.0.0
- ***BREAKING***: Inline comments are no longer allowed in `.env` files (full line comments are still allowed)

@@ -67,2 +81,3 @@ - ***BREAKING***: `.env` file no longer supports the `env var` format (only `env=var` is allowed now)

## 4.0.0
- ***BREAKING***: In order to use double quotes as part of the env value, you must now surround those double quotes with an additional set of quotes: So `ENV1="value"` -> `ENV1=""value""` (this only applies to double quotes, single quotes continue to work as normal)

@@ -73,2 +88,3 @@ - **Bug**: Fixed bug in the comment stripper function that would remove env values that included a `#`. Now, in order to use a `#` in a env value, you have to surround that env value in double quotes: `ENV="Some#Value"`.

## 3.0.0
- **Feature**: Added ability to use an `.env-cmdrc` file to hold multiple configs

@@ -79,5 +95,7 @@ - **Feature**: Added ability to pass in a regular `.js` file exporting an object for your env file (special thanks to Jon Scheiding!)

## 2.2.0
- **Feature**: Added support for .json env files (special thanks to Eric Lanehart!)
## 2.1.0
- **Feature**: Added support for `key value` mapping in env vars file

@@ -91,2 +109,3 @@ - **Feature**: Added support for inline comments `ENV=VALUE # inline comment`

## 2.0.0
- ***BREAKING***: Removed the `-e` and `--env` flags. Now it just expects the first arg to `env-cmd` to be the relative path to the env file: `env-cmd env_file command carg1 carg2`

@@ -99,2 +118,3 @@ - **Change:** `ParseEnvFile` is now more properly named `ParseEnvString`

## 1.0.1
- Fixed badges

@@ -106,2 +126,3 @@ - Added .npmignore

## 1.0.0
- Initial release

@@ -26,3 +26,9 @@ "use strict";

// Run EnvCmd
return exports.EnvCmd(parsedArgs);
try {
return yield exports.EnvCmd(parsedArgs);
}
catch (e) {
console.error(e);
return process.exit(1);
}
});

@@ -29,0 +35,0 @@ }

5

package.json
{
"name": "env-cmd",
"version": "9.0.1",
"version": "9.0.2",
"description": "Executes a command using the environment variables in an env file",

@@ -19,3 +19,4 @@ "main": "dist/index.js",

"lint": "eslint --fix ./src/**/*.ts ./test/**/*.ts && tsc --noEmit",
"build": "tsc"
"build": "tsc",
"watch": "tsc -w"
},

@@ -22,0 +23,0 @@ "repository": {

@@ -6,3 +6,3 @@ [![Travis](https://img.shields.io/travis/toddbluhm/env-cmd.svg)](https://travis-ci.org/toddbluhm/env-cmd)

[![npm](https://img.shields.io/npm/l/env-cmd.svg?maxAge=2592000)](https://www.npmjs.com/package/env-cmd)
[![Standard - JavaScript Style Guide](https://img.shields.io/badge/code%20style-standard-brightgreen.svg)](http://standardjs.com/)
[![Standard - JavaScript Style Guide](https://img.shields.io/badge/code%20style-standard-brightgreen.svg)](http://standardjs.com/) [![Greenkeeper badge](https://badges.greenkeeper.io/toddbluhm/env-cmd.svg)](https://greenkeeper.io/)

@@ -39,3 +39,10 @@ # env-cmd

## Using custom env file path
To use a custom env filename or path, pass the `-f` flag. This is a major breaking change from prior versions < 9.0.0
**Terminal**
```sh
./node_modules/.bin/env-cmd -f ./custom/path/.env node index.js
```
## 📜 Help

@@ -42,0 +49,0 @@ ```

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