Gathering detailed insights and metrics for @mjsdevs/config.ts
Gathering detailed insights and metrics for @mjsdevs/config.ts
Gathering detailed insights and metrics for @mjsdevs/config.ts
Gathering detailed insights and metrics for @mjsdevs/config.ts
npm install @mjsdevs/config.ts
Typescript
Module System
Node Version
NPM Version
69.9
Supply Chain
79.8
Quality
75.9
Maintenance
100
Vulnerability
100
License
TypeScript (100%)
Total Downloads
2,933
Last Day
1
Last Week
5
Last Month
7
Last Year
252
1 Stars
69 Commits
1 Watching
1 Branches
3 Contributors
Latest Version
1.3.6
Package Id
@mjsdevs/config.ts@1.3.6
Unpacked Size
158.56 kB
Size
61.39 kB
File Count
24
NPM Version
6.14.8
Node Version
14.15.0
Cumulative downloads
Total Downloads
Last day
0%
1
Compared to previous day
Last week
0%
5
Compared to previous week
Last month
16.7%
7
Compared to previous month
Last year
-57.8%
252
Compared to previous year
1
8
Config.ts is a generic configuration service that uses dotenv and typescript to improve the experience when using environment variables.
// with NPM
npm install @mjsdevs/config.ts
// with yarn
yarn add @mjsdevs/config.ts
1import { 2 Result, 3 ConfigurationServiceFactory, 4} from '@mjsdevs/config.ts' 5 6// create an interface/class with the desired environment variables 7interface EnvDefinition { 8 NODE_ENV: string; 9} 10 11// get a factory for configuration service 12const factory = new ConfigurationServiceFactory<EnvDefinition>(); 13 14// use the factory to create a new ConfigurationService instance. 15// you need to implement the handler to return a success or failing Result 16const service = factory.create({ 17 validation:{ 18 handler: (env) => Result.ok(env), 19 }, 20 options: {} 21}); 22 23// user the service to get environment variables 24const env = service.get('NODE_ENV'); // development
// WIP
// WIP
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 0/30 approved changesets -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
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
dependency not pinned by hash detected -- score normalized to 0
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
branch protection not enabled on development/release branches
Details
Reason
15 existing vulnerabilities detected
Details
Score
Last Scanned on 2024-12-16
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