Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
A CLI for adding components to your project.
[!WARNING] The shadcn-ui CLI is going to be deprecated soon. Bug fixes and new features should be added to the
.packages/shadcn
instead.
Use the init
command to initialize dependencies for a new project.
The init
command installs dependencies, adds the cn
util, configures tailwind.config.js
, and CSS variables for the project.
npx shadcn-ui init
Use the add
command to add components to your project.
The add
command adds a component to your project and installs all required dependencies.
npx shadcn-ui add [component]
npx shadcn-ui add alert-dialog
You can also run the command without any arguments to view a list of all available components:
npx shadcn-ui add
Visit https://ui.shadcn.com/docs/cli to view the documentation.
Licensed under the MIT license.
FAQs
Add components to your apps.
We found that shadcn-ui demonstrated a healthy version release cadence and project activity because the last version was released less than 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.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.