Shadcn Alias

screenshot of Shadcn Alias
shadcn-ui

A CLI tool to automatically generate a file to centralize your shadcn/ui component imports.

Overview

The CLI tool is designed to streamline the import process within your project by scanning your designated folder and generating a consolidated ui.ts file. This file serves as a centralized hub for re-exporting all components, enhancing project organization and making the code easier to read. With this tool, developers can focus on writing quality code without the hassle of managing repetitive imports or navigating complex file paths.

By leveraging this tool, you can drastically improve your development experience. It reduces clutter, promotes cleaner code practices, and ultimately creates a more enjoyable workflow.

Features

  • Organized Exports: Creates a single ui.ts file that re-exports all components, simplifying import statements throughout your project.
  • Reduced Repetitive Imports: Significantly lowers the need for multiple import statements, promoting cleaner code.
  • Enhanced Readability: By consolidating imports, the generated file improves code readability and overall project structure.
  • Simplified Path Management: No more remembering intricate file paths, making the development experience more efficient.
  • Flexible Usage: Easily run the command in the root of your project or install the tool globally for more versatile usage.
  • MIT License: This tool is open source under the MIT License, ensuring that you can use it freely in your projects.
shadcn-ui
Shadcn UI

Beautifully designed components that you can copy and paste into your apps. Accessible. Customizable. Open Source.

typescript
Typescript

TypeScript is a superset of JavaScript, providing optional static typing, classes, interfaces, and other features that help developers write more maintainable and scalable code. TypeScript's static typing system can catch errors at compile-time, making it easier to build and maintain large applications.