![Introducing Enhanced Alert Actions and Triage Functionality](https://cdn.sanity.io/images/cgdhsj6q/production/fe71306d515f85de6139b46745ea7180362324f0-2530x946.png?w=800&fit=max&auto=format)
Product
Introducing Enhanced Alert Actions and Triage Functionality
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
now-env
Advanced tools
Readme
Module to load environment variables defined in a now.json
file or the now
key in the package.json
and set them in process.env
.
Download it from npm.
yarn add now-env
npm i now-env
Then require it.
require('now-env').config()
That's all, you can now check in process.env
for you environment variables!
If your application is running inside ▲ZEIT Now cloud then this module is not going to do anything and let ▲ZEIT Now set your environment variables.
Most probably you will want to use secret keys in your now.json
file. This module allow you to use them too without worries in development.
Just create a now-secrets.json
file with you development secrets, that file must be ignored with Git, then just use now-env
as usual and it will auto-detect the file and use it to replace your secrets values.
If the file doesn't exists or if your secret key is not defined then it's going to use the secret name as value, that means if DB_PASS
is @db_pass
and you don't define it inside now-secrets.json
then the value will be @db_pass
.
dotenv
If you're already using the dotenv
module you can switch to now-env
easily.
now.json
file with the env
key with every environment variable.now-env
require('dotenv').config()
with require('now-env').config()
.FAQs
Use `now.json` environment variables while developing
The npm package now-env receives a total of 164 weekly downloads. As such, now-env popularity was classified as not popular.
We found that now-env demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 52 open source maintainers 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.
Product
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
Security News
Polyfill.io has been serving malware for months via its CDN, after the project's open source maintainer sold the service to a company based in China.
Security News
OpenSSF is warning open source maintainers to stay vigilant against reputation farming on GitHub, where users artificially inflate their status by manipulating interactions on closed issues and PRs.