
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
@evertbouw/ts-strictify
Advanced tools
Runs TypeScript in strict mode on your changed files.
TBD
When you start working on a new feature or fixing a bug, you will modify the code base in one way or another. ts-strictify
will take a look at these changes - and only these changes (!) and will complain, if the files you have touched are not strict compliant.
That is different than TypeScript works. You could check a single file against the compiler, but the compiler would also look up the imports and the imports of the imports. Not exactly what you want, when you are looking for incrementally update path.
Head over to https://cschroeter.net/moving-to-strict-typescript/ for more insights.
With yarn
:
yarn add --dev ts-strictify
With npm
:
npm install --save-dev ts-strictify
With yarn
:
yarn ts-strictify
You can also disable a compiler flag, for example you want to disable strictNullChecks
yarn ts-strictify --strictNullChecks false
You can find a list of all available options here
.
With npx
:
npx ts-strictify
With npm
:
"ts-strictify": "ts-strictify"
to the scripts section of package.json
.npm run ts-strictify
You can run ts-strictify
as a pre-commit hook using husky
.
yarn add --dev husky
In package.json
, add:
"husky": {
"hooks": {
"pre-commit": "ts-strictify"
}
}
Options:
--help Show help [boolean]
--version Show version number [boolean]
--noImplicitAny [boolean] [default: true]
--noImplicitThis [boolean] [default: true]
--alwaysStrict [boolean] [default: true]
--strictBindCallApply [boolean] [default: true]
--strictNullChecks [boolean] [default: true]
--strictFunctionTypes [boolean] [default: true]
--strictPropertyInitialization [boolean] [default: true]
--noEmit [boolean] [default: true]
--targetBranch [string] [default: "master"]
--stagedOnly (ignores targetBranch) [boolean] [default: false]
FAQs
Enable gradual TypeScript strict
We found that @evertbouw/ts-strictify demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.