Gathering detailed insights and metrics for cypress-dotenv-flow
Gathering detailed insights and metrics for cypress-dotenv-flow
Gathering detailed insights and metrics for cypress-dotenv-flow
Gathering detailed insights and metrics for cypress-dotenv-flow
npm install cypress-dotenv-flow
Typescript
Module System
Min. Node Version
Node Version
NPM Version
JavaScript (98.36%)
Shell (1.64%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
2 Stars
37 Commits
1 Branches
1 Contributors
Updated on Aug 06, 2023
Latest Version
1.2.2
Package Id
cypress-dotenv-flow@1.2.2
Unpacked Size
5.45 kB
Size
2.27 kB
File Count
3
NPM Version
6.14.8
Node Version
12.19.0
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
3
2
5
Cypress plugin that enables compatability with dotenv-flow.
It will load any environment variables
defined in your .env.<environment>.local
file so you can access them via Cypress.env()
from within your tests as you would expect.
Any Cypress config options defined in your .env
will also be applied and take precedence over what is in your cypress.json
file. See the Cypress docs for details on this
For example, if your .env
file has something like this:
1CYPRESS_HELLO=hola 2GOODBYE=adios
You can use Cypress.env('HELLO')
to access its value.
You will also need to install the original dotenv-flow
package along with cypress-dotenv-flow
1npm install --save-dev dotenv-flow cypress-dotenv-flow
or
yarn add --dev dotenv-flow cypress-dotenv-flow
Since this is a plugin, you will need to modify your file cypress/plugins/index.js
to look something like this:
1const dotenvFlowPlugin = require('cypress-dotenv-flow'); 2module.exports = (on, config) => { 3 config = dotenvFlowPlugin(config) 4 return config 5}
This plugin takes three paramaters. The first parameter (which is mandatory) is the Cypress config object.
The second is an optional dotenv-flow config object.
The third is an optional [all] boolean parameter, which is set to false by default. If set to true, it returns all available environmental variables, not limited to those prefixed with CYPRESS_.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
Found 0/30 approved changesets -- score normalized to 0
Reason
project is archived
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
no SAST tool detected
Details
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
license file not detected
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
34 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More