![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
dotenv-filter-cli
Advanced tools
Reverse of dotenv; filter env variables and output them in the dotenv format
This is a very small CLI tool to filter environment variables from process.env
.
You can kinda see this as the reverse of dotenv; it processes all your current env variables, allows you to filter on them and outputs it as if it were a dotenv file.
My specific use case is that when I run Zeit Now in a CI tool like Travis, I want to give it only the environment variables that start with BACKEND_
, like BACKEND_SECRET
. The only alternative I saw is to pass every environment variable with, -e BACKEND_SECRET
etc. That is not maintainable when you have 10+ variables.
Install with npm i -g dotenv-filter-cli
$ dotenv-filter --prefix=BACKEND_
BACKEND_SECRET="xxx"
BACKEND_APP_URL="https://example.com"
Or save to a file directly:
$ dotenv-filter --prefix=BACKEND_ > .env
Or if your naming scheme uses consistent suffixes instead of prefixes:
$ dotenv-filter --suffix=_APP
SECRET_APP="xxx"
Or maybe you want to filter on multiple suffixes:
$ dotenv-filter --suffix=_APP --suffix=MAIL
SECRET_APP="xxx"
FROM_MAIL="kees@example.com"
Example usage with Zeit Now (note: this is not specific in any way to Zeit):
$ dotenv-filter --prefix=BACKEND > .env.now
$ now --dotenv .env.now
FAQs
Reverse of dotenv; filter env variables and output them in the dotenv format
The npm package dotenv-filter-cli receives a total of 0 weekly downloads. As such, dotenv-filter-cli popularity was classified as not popular.
We found that dotenv-filter-cli demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.