Gathering detailed insights and metrics for string-env-interpolation
Gathering detailed insights and metrics for string-env-interpolation
Gathering detailed insights and metrics for string-env-interpolation
Gathering detailed insights and metrics for string-env-interpolation
npm install string-env-interpolation
Typescript
Module System
Node Version
NPM Version
TypeScript (97.7%)
JavaScript (2.3%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
4 Stars
2 Commits
2 Forks
2 Watchers
2 Branches
1 Contributors
Updated on Apr 04, 2025
Latest Version
1.0.1
Package Id
string-env-interpolation@1.0.1
Size
1.54 kB
NPM Version
6.13.4
Node Version
10.18.0
Published on
Jun 02, 2020
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
No dependencies detected.
Use string interpolation to provide Environment Variables.
yarn add string-env-interpolation
npm install string-env-interpolation
Let's say we have a config file: config.yaml
.
1debug: ${DEBUG:false} 2name: ${NAME:"Development"} 3user: ${USER}
Our library wants to be able to consume environment variables in index.js
.
1import { env } from "string-env-interpolation"; 2import { readFileSync } from "fs"; 3 4const content = env(readFileSync("./config.yaml", "utf-8")); 5 6console.log(content);
Outputs:
1DEBUG=true USER=kamil node index.js 2 3# Output 4debug: true 5name: Development 6user: kamil 7 8 9 10NAME=Production USER=kamil node index.js 11 12# Output 13debug: false 14name: Production 15user: kamil
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
Found 0/2 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no SAST tool detected
Details
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
license file not detected
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
12 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