Gathering detailed insights and metrics for types-tsconfig
Gathering detailed insights and metrics for types-tsconfig
Gathering detailed insights and metrics for types-tsconfig
Gathering detailed insights and metrics for types-tsconfig
npm install types-tsconfig
Typescript
Module System
Min. Node Version
Node Version
NPM Version
87.1
Supply Chain
100
Quality
76.6
Maintenance
100
Vulnerability
99.6
License
TypeScript (100%)
Total Downloads
332,233
Last Day
1,359
Last Week
6,161
Last Month
30,753
Last Year
159,140
6 Stars
34 Commits
1 Forks
1 Watchers
2 Branches
2 Contributors
Updated on Oct 12, 2024
Minified
Minified + Gzipped
Latest Version
2.1.1
Package Id
types-tsconfig@2.1.1
Unpacked Size
100.64 kB
Size
9.06 kB
File Count
8
NPM Version
10.5.0
Node Version
21.7.1
Published on
May 05, 2024
Cumulative downloads
Total Downloads
Last Day
8.5%
1,359
Compared to previous day
Last Week
-0.6%
6,161
Compared to previous week
Last Month
-29.4%
30,753
Compared to previous month
Last Year
162.5%
159,140
Compared to previous year
Type checking for tsconfig.json.
If I should maintain this repo, please ⭐️
DM me on Twitter if you have questions or suggestions.
This package uses zod to parse and type-guard a TSConfigJSON object.
1yarn add types-tsconfig
1npm install types-tsconfig
1pnpm add types-tsconfig
The isTSConfigJSON
function is a type guard that checks if an object is a valid TSConfigJSON
object.
1import { isTSConfigJSON, TSConfigJSON } from "types-tsconfig"; 2 3const config = { 4 $schema: "https://json.schemastore.org/tsconfig", 5 extends: "@autosoft/tsconfig", 6 compilerOptions: { 7 outDir: ".auto/build", 8 rootDirs: [ 9 "source" 10 ] 11 }, 12 files: [ 13 "source/index.ts" 14 ] 15}; 16 17if(isTSConfigJSON(config)) { 18 // config is TSConfigJSON 19}
The parseTSConfigJSON
function parses an object into a TSConfigJSON
object. If the object is a valid TSConfigJSON
object, it will be returned, otherwise undefined will be returned.
1import { parseTSConfigJSON, TSConfigJSON } from "types-tsconfig"; 2 3const config = { 4 invalid: "config" 5}; 6 7const result = parseTSConfigJSON(config); // undefined
Additionally, a constant fileName
is exported as "tsconfig.json":
1import { fileName } from "types-tsconfig"; 2 3console.log(fileName); // "tsconfig.json"
MIT - MIT License
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
Found 1/23 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 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
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
58 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-04-28
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