Installations
npm install two-phase-live-config
Developer Guide
Typescript
No
Module System
CommonJS
Node Version
8.9.3
NPM Version
5.5.1
Score
64.1
Supply Chain
70.4
Quality
70.8
Maintenance
50
Vulnerability
97.3
License
Releases
Unable to fetch releases
Contributors
Unable to fetch Contributors
Languages
JavaScript (100%)
Love this project? Help keep it running — sponsor us today! 🚀
Developer
stierma1
Download Statistics
Total Downloads
560
Last Day
2
Last Week
4
Last Month
15
Last Year
52
GitHub Statistics
MIT License
3 Commits
2 Watchers
1 Branches
1 Contributors
Updated on Apr 04, 2018
Package Meta Information
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
Total Downloads
Cumulative downloads
Total Downloads
560
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
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Dependencies
1
two-phase-live-config
Usage Example
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})
Description
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
Resolvers
File
1{ENV_NAME}="file://{absolute_file_path}" 2{ENV_NAME}_INTERVAL={NUMBER} (optional)
Object
1{ENV_NAME}="object://{JSON_STRING}" 2{ENV_NAME}_INTERVAL={NUMBER} (optional)
Environment Variable
1{ENV_NAME}="env://" 2{ENV_NAME}_INTERVAL={NUMBER} (optional)
HTTP or HTTPS
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
- Info: project has a license file: LICENSE:0
- Info: FSF or OSI recognized license: MIT License: LICENSE:0
Reason
Found 0/3 approved changesets -- score normalized to 0
Reason
no SAST tool detected
Details
- Warn: no pull requests merged into dev branch
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
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'master'
Reason
10 existing vulnerabilities detected
Details
- Warn: Project is vulnerable to: GHSA-v88g-cgmw-v5xw
- Warn: Project is vulnerable to: GHSA-rq8g-5pc5-wrhr
- Warn: Project is vulnerable to: GHSA-qrmc-fj45-qfc2
- Warn: Project is vulnerable to: GHSA-44pw-h2cw-w3vq
- Warn: Project is vulnerable to: GHSA-c429-5p7v-vgjp
- Warn: Project is vulnerable to: GHSA-896r-f27r-55mw
- Warn: Project is vulnerable to: GHSA-hrpp-h998-j3pp
- Warn: Project is vulnerable to: GHSA-p8p7-x288-28g6
- Warn: Project is vulnerable to: GHSA-mf6x-7mm4-x2g7
- Warn: Project is vulnerable to: GHSA-72xf-g2v4-qvf3
Score
1.7
/10
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