npmrc-replace-env
Advanced tools
Comparing version
{ | ||
"name": "npmrc-replace-env", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "A utility for generating .npmrc files based on configuration template and environment variables.", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -15,2 +15,3 @@ # npmrc-replace-env | ||
- [Define Environment Variables in .env](#define-environment-variables-in-env) | ||
- [Command Line Options](#command-line-options) | ||
- [Contributing](#contributing) | ||
@@ -29,4 +30,3 @@ - [License](#license) | ||
[!NOTE] | ||
While installing the package is an option, it's important to note that it's not required to use the utility. The utility can be invoked directly with npx without installing the package. | ||
**Note**: While installing the package is an option, it's important to note that it's not required to use the utility. The utility can be invoked directly with npx without installing the package. | ||
@@ -83,2 +83,4 @@ ## Usage | ||
**Note**: By default, the utility expects environment variables to begin with the prefix `NPMRC_`, as shown in the example above. This default behavior can be customized using command-line options. For more information on customizing the prefix for environment variables, refer to the [Command Line Options](#command-line-options) section below. | ||
For more detailed configuration options and information about using `.env` files, refer to the [dotenv-flow documentation](https://www.npmjs.com/package/dotenv-flow). | ||
@@ -90,11 +92,10 @@ | ||
| Option | Alias | Description | Default | | ||
|-----------------|-------|------------------------------------------------|----------------------| | ||
| `--prefix` | `-p` | Custom environment variable prefix | `NPMRC_`| | ||
| `--without-prefix`| `-w`| Do not use any prefix for environment variables| `false` | | ||
| Option | Alias | Description | Default | | ||
| ------------------ | ----- | ----------------------------------------------- | -------- | | ||
| `--prefix` | `-p` | Custom environment variable prefix | `NPMRC_` | | ||
| `--without-prefix` | `-w` | Do not use any prefix for environment variables | `false` | | ||
These options provide flexibility in configuring environment variables and allow tailoring the utility to your specific needs. | ||
[!NOTE] | ||
To display the help message for command-line options, use the `--help` or `-h` option when invoking the utility: | ||
**Note**: To display the help message for command-line options, use the `--help` or `-h` option when invoking the utility: | ||
@@ -109,2 +110,2 @@ ## Contributing | ||
This project is licensed under the MIT License - see the [LICENSE](./LICENSE) file for details. | ||
This project is licensed under the MIT License - see the [LICENSE](./LICENSE) file for details. |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
19382
2.01%107
1.9%0
-100%