@jooscript/ts-toolkit
v1.0.10
Published
Reusable UI components, React hooks, utility functions, API helpers, and shared TypeScript tools.
Maintainers
Readme
@jooscript/ts_utils
A modern TypeScript utility library providing reusable React components, hooks, API helpers, utility functions, and shared tools for React and Next.js applications.
Features
- ⚛️ Reusable React components
- 🪝 Custom React hooks
- 🌐 API helpers built on Axios
- 🛠️ Utility functions
- 📅 Date utilities
- 🎨 Tailwind CSS & shadcn/ui compatible
- 📦 Tree-shakable
- 🔷 Fully typed with TypeScript
- 🚀 Supports ESM and CommonJS
Installation
npm install @jooscript/ts_utilsor
yarn add @jooscript/ts_utilsor
pnpm add @jooscript/ts_utilsPeer Dependencies
This package requires:
- React 18+
- ReactDOM 18+
Install them if they are not already available in your project.
Usage
import { Button } from "@jooscript/ts_utils";or
import { usePagination } from "@jooscript/ts_utils";Example
import { formatDate } from "@jooscript/ts_utils";
export default function App() {
return (
<div>
{formatDate(new Date())}
</div>
);
}Project Structure
src/
│
├── api/
├── components/
├── constants/
├── hooks/
├── lib/
├── providers/
├── types/
├── utils/
│
└── index.tsBuild
npm run buildDevelopment
npm run devTechnologies
- TypeScript
- React
- Axios
- date-fns
- clsx
- tsup
Browser Support
Supports all modern browsers and Node.js 20+.
License
This project is licensed under the MIT License.
See the LICENSE file for details.
Author
Joo Script
Contributing
Contributions, issues, and feature requests are welcome.
- Fork the repository.
- Create a feature branch.
- Commit your changes.
- Open a Pull Request.
Repository
GitHub
Issues
Report bugs or request features through GitHub Issues.
Version
Current Version: 1.0.0
