
Security News
MCP Community Begins Work on Official MCP Metaregistry
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
cssdependencyanalyzer
Advanced tools
CSSDependencyAnalyzer
is a high-performance .NET global tool that scans React (.tsx/.jsx
) components and determines which CSS/SCSS files they rely on. This helps in optimizing CSS usage and enabling lazy-loaded React components.
.tsx
and .jsx
: Parses both TypeScript and JavaScript React files and CSS / SCSS files. Currently, it is tested on Repos created from Vite / CRA.You can install the package globally using the .NET CLI:
dotnet tool install -g CSSDependencyAnalyzer
Update:
dotnet tool update -g CSSDependencyAnalyzer
Uninstall:
dotnet tool uninstall -g CSSDependencyAnalyzer
Basic Usage
To analyze a React project, navigate to the root folder and run:
CSSDependencyAnalyzer <project-root>
Example:
CSSDependencyAnalyzer C:\Projects\MyReactApp
This outputs a JSON report detailing: Each component file (.tsx or .jsx) and the CSS classes it uses. The corresponding required CSS/SCSS files.
Example Output
[
{
"File": "C:\\Projects\\MyReactApp\\components\\Button.tsx",
"UsedClasses": ["btn-primary", "btn-lg"],
"RequiredCssFiles": ["C:\\Projects\\MyReactApp\\styles\\buttons.css"]
},
{
"File": "C:\\Projects\\MyReactApp\\components\\Header.tsx",
"UsedClasses": ["header", "nav"],
"RequiredCssFiles": ["C:\\Projects\\MyReactApp\\styles\\header.scss"]
}
]
Clone the repository:
git clone https://github.com/ChiragRupani/CSSDependencyAnalyzer
cd CSSDependencyAnalyzer
Install local code
dotnet tool install -g --add-source ./nupkg CSSDependencyAnalyzer --prerelease
Run tests:
dotnet test
FAQs
Unknown package
We found that cssdependencyanalyzer demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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.
Security News
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
Research
Security News
Socket uncovers an npm Trojan stealing crypto wallets and BullX credentials via obfuscated code and Telegram exfiltration.
Research
Security News
Malicious npm packages posing as developer tools target macOS Cursor IDE users, stealing credentials and modifying files to gain persistent backdoor access.