Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Typescript to UML (PlantUML)
Will convert a Typescript file to UML diagram. Following all inheritances.
npm install --global tplant
tplant --input test/Playground/**/*.ts --output test/Playground/Playground.svg
tplant --input test/Playground/Classes/Greeter.ts --output test/Playground/Classes/Greeter.png
Internet connection is required
tplant --input test/Playground/**/*.ts --output test/Playground/Playground.puml
tplant --input test/Playground/Classes/Greeter.ts --output test/Playground/Classes/Greeter.puml
Define the path of the Typescript file
Define the path of the output file. If not defined, it'll output on the STDOUT
Compile a project given a valid configuration file.
The argument can be a file path to a valid JSON configuration file, or a directory path to a directory containing a tsconfig.json file.
Show associations between classes with cardinalities
Example:
class Wheel {
public size: number;
}
class Car {
public wheel: Wheel[];
}
@startuml
class Wheel {
+size: number
}
class Car {
+wheel: Wheel
}
Car --> "*" Wheel
@enduml
Only convert interfaces
By default it is plantuml
If mermaid
is specific, then the class diagram is generated for mermaidjs
If specified will generated the hierarchy class diagram of the specified class
For generating images may need to install graphviz or update to most recent version.
https://github.com/Microsoft/TypeScript/wiki/Using-the-Compiler-API
FAQs
Typescript to PlantUML
The npm package tplant receives a total of 1,937 weekly downloads. As such, tplant popularity was classified as popular.
We found that tplant demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.