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.
tslint-rule-documentation
Advanced tools
Find the url for the documentation of a TSLint rule
npm install --save tslint-rule-documentation
const getRuleUri = require("tslint-rule-documentation").getRuleUri;
// find uri for core rules
getRuleUri("no-var-keyword");
// => { found: true, uri: "https://palantir.github.io/tslint/rules/no-var-keyword"}
// find uri for known plugins
getRuleUri("__example/foo");
// => { found: true, uri: "https://github.com/<user>/<repo>/blob/master/docs/foo.md"}
// If the plugin is not known, get a link to help improve this
getRuleUri("unknown-plugin/foo");
// => { found: false, uri: "https://github.com/Xapphire13/tslint-rule-documentation/blob/master/CONTRIBUTING.md"}
If a plugin you use is not in the list of supported plugins, please consider adding it to the project by following the instructions here.
Type: string
The ID of a TSLint rule
Examples:
no-var-keyword
__example/foo
Type: IRuleResult
interface IRuleResult {
found: boolean; // true if the rule is a TSLint core rule, or a known plugin rule, false otherwise
uri: string; // If found is true, uri of the documentation of the rule. If found is false, uri of the contribution guidelines
}
This is based on eslint-rules-documentation, so I would like to thank the authors of that for the inspiration and code to base this on.
MIT
FAQs
Find the url for the documentation of a TSLint rule
The npm package tslint-rule-documentation receives a total of 1 weekly downloads. As such, tslint-rule-documentation popularity was classified as not popular.
We found that tslint-rule-documentation 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.