Gathering detailed insights and metrics for two-phase-live-config
Gathering detailed insights and metrics for two-phase-live-config
npm install two-phase-live-config
Typescript
Module System
Node Version
NPM Version
64.1
Supply Chain
70.4
Quality
70.8
Maintenance
50
Vulnerability
97.3
License
JavaScript (100%)
Love this project? Help keep it running — sponsor us today! 🚀
Total Downloads
560
Last Day
2
Last Week
4
Last Month
15
Last Year
52
MIT License
3 Commits
2 Watchers
1 Branches
1 Contributors
Updated on Apr 04, 2018
Latest Version
1.0.0
Package Id
two-phase-live-config@1.0.0
Unpacked Size
5.45 kB
Size
2.26 kB
File Count
4
NPM Version
5.5.1
Node Version
8.9.3
Cumulative downloads
Total Downloads
Last Day
0%
2
Compared to previous day
Last Week
300%
4
Compared to previous week
Last Month
275%
15
Compared to previous month
Last Year
-14.8%
52
Compared to previous year
1
1//Terminal 2LIVELY_RESOLVERS="SECRET,HTTP,FILE,ENV" FILE="file:///Users/user/code/configs/config.json" HTTP="http://example.com" HTTP_INTERVAL=5000 SECRET="object://{\"foo\":\"bar\"}" ENV="env://" node index.js 3 4//In code 5var config = require("two-phase-live-config"); 6config.ready.then(() => { 7 //config is ready 8 //See LivelyConfig library for api 9})
This library is to support config setup via command line rather than application level setup.
To Library will check environment variables first for a 'LIVELY_RESOLVERS' environment variable whose format is a comma separated list of Environment Variable Names, these names will be used to resolve the underlying config values
The order of resolvers in the LIVELY_RESOLVERS determines the priority of resolution
1{ENV_NAME}="file://{absolute_file_path}" 2{ENV_NAME}_INTERVAL={NUMBER} (optional)
1{ENV_NAME}="object://{JSON_STRING}" 2{ENV_NAME}_INTERVAL={NUMBER} (optional)
1{ENV_NAME}="env://" 2{ENV_NAME}_INTERVAL={NUMBER} (optional)
1{ENV_NAME}="http://{url}" 2{ENV_NAME}_INTERVAL={NUMBER} (optional) 3{ENV_NAME}_HEADERS={JSON_STRING} (optional)
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 0/3 approved changesets -- score normalized to 0
Reason
no SAST tool detected
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
10 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-02-10
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