
Research
/Security News
Weaponizing Discord for Command and Control Across npm, PyPI, and RubyGems.org
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
@federato/ts-strictify
Advanced tools
Runs TypeScript in strict mode on your changed files.
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.
With npm
:
npm install --save-dev ts-strictify
With yarn
:
yarn add --dev ts-strictify
With pnpm
:
pnpm add --dev ts-strictify
With npm
:
npx ts-strictify
With yarn
:
yarn ts-strictify
With pnpm
:
pnpm ts-strictify
You can find a list of all available options here
.
You can run ts-strictify
as a pre-commit hook using
husky
. Add the following to your
package.json
file.
{
"husky": {
"hooks": {
"pre-commit": "ts-strictify"
}
}
}
Options:
--help Show help [boolean]
--version Show version number [boolean]
--project [string] [default: "./tsconfig.json"]
--targetBranch [string] [default: "main"]
--commitedFiles [boolean] [default: true]
--stagedFiles [boolean] [default: true]
--modifiedFiles [boolean] [default: true]
--untrackedFiles [boolean] [default: true]
--createdFiles [boolean] [default: true]
Thanks to Christian Schröter for his work on the original ts-strictify project this fork was based on!
FAQs
Enable gradual TypeScript strict
The npm package @federato/ts-strictify receives a total of 26 weekly downloads. As such, @federato/ts-strictify popularity was classified as not popular.
We found that @federato/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.
Research
/Security News
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
Security News
Socket now integrates with Bun 1.3’s Security Scanner API to block risky packages at install time and enforce your organization’s policies in local dev and CI.
Research
The Socket Threat Research Team is tracking weekly intrusions into the npm registry that follow a repeatable adversarial playbook used by North Korean state-sponsored actors.