
Research
/Security News
Contagious Interview Campaign Escalates With 67 Malicious npm Packages and New Malware Loader
North Korean threat actors deploy 67 malicious npm packages using the newly discovered XORIndex malware loader.
type-coverage
Advanced tools
A CLI tool to check type coverage for typescript code
This tool will check type of all identifiers, the code coverage
= the count of identifiers whose type is not any
/ the total count of identifiers
, the higher, the better.
yarn global add type-coverage
run type-coverage
name | type | description |
---|---|---|
-p, --project | string? | show where is the tsconfig.json |
--detail | boolean? | show detail |
--at-least | number? | fail if coverage rate < this value |
--debug | boolean? | show debug info |
--strict | boolean? | if the identifiers' type arguments exist and contain at least one any , like any[] , ReadonlyArray<any> , Promise<any> , Foo<number, any> , is will considered as any too; also, future minor release may introduce stricter type check in this mode, which may lower the code coverage |
"typeCoverage": {
"atLeast": 99 // same as --at-least
},
https://marketplace.visualstudio.com/items?itemName=york-yao.vscode-type-coverage
Use your own project url:
[](https://github.com/plantain-00/type-coverage)
Q: Does this count JavaScript files?
Yes, This package calls Typescript API, Typescript can parse Javascript file(with allowJs
), then this package can too.
FAQs
A CLI tool to check type coverage for typescript code
We found that type-coverage demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
/Security News
North Korean threat actors deploy 67 malicious npm packages using the newly discovered XORIndex malware loader.
Security News
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
Security News
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.