Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
check-flow
Advanced tools
A better flow cli with ignoring errors from files which are in node_modules
folder and only showing errors from certain files.
Supports flow >= 0.65.0
yarn install --dev check-flow flow-bin
In your scripts, run flow-check to validate all of your files with without reporting errors for files inside node_modules
.
But you don't loose any typing definitions by needing to ignore certain files inside node_modules
.
{
"scripts": { "flow": "check-flow" }
}
The main argument to the command are globs which should only report errors for. This can be useful to only get errors from a specific directory or for something like https://github.com/okonet/lint-staged. Multiple globs can be specified.
Example: Only show errors for files inside the src directory and which have the js extension.
{
"scripts": {
"flow": "check-flow \"src/**/*.js\" \"src/*.js\""
}
}
Ignoring files is configured by a .flowignore
inside the current working directory.
Example:
# This is a comment
node_modules
dist
yarn
yarn lint
and
yarn flow
Notice: When running flow, this package uses actually this package and compiles the code before to run it.
Before commit, it will also run lint and flow to check for errors.
yarn test
This will run the tests for every supported flow versions. Don't worry when they take some time because we run 3 tests per supported flow version.
yarn build
This will compile the source code which is located in src/
and output it into bin/
.
MIT
FAQs
A better flow cli with ignoring files from node_modules
We found that check-flow 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’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.