A collection of utility functions you can copy and paste directly into your JavaScript and TypeScript projects.
- No Dependencies: Just copy the function you need. No package installation required.
- Well-Documented: Each function comes with clear documentation and examples.
- TypeScript Support: All functions include TypeScript typings for better developer experience.
- Small Footprint: Only use what you need - no bloat in your codebase.
- Array: Functions for array manipulation, filtering, mapping, and more.
- Collection: Collection-related utility functions.
- Date: Date manipulation and formatting utilities.
- Number: Number-related utility functions.
- Object: Functions for working with objects, deep cloning, merging, and more.
- String: String manipulation, formatting, validation, and more.
- Utility: General purpose utility functions for common tasks.
- Value: Value-checking and transformation utilities.
.
├── public/ # Static assets
├── src/
│ ├── assets/ # Images and other assets
│ ├── components/ # Reusable UI components
│ ├── content/
│ │ ├── docs/ # Documentation content
│ │ ├── functions/ # Function documentation files
│ │ ├── guides/ # Usage guides
│ │ └── index.mdx # Home page
│ └── styles/ # CSS styles
├── astro.config.mjs # Astro configuration
├── package.json # Project dependencies
└── tsconfig.json # TypeScript configuration
All commands are run from the root of the project, from a terminal:
| Command | Action |
|---|---|
pnpm install |
Installs dependencies |
pnpm dev |
Starts local dev server at localhost:4321 |
pnpm build |
Build your production site to ./dist/ |
pnpm preview |
Preview your build locally, before deploying |
Visit the documentation site to find the function you need, then simply copy and paste it into your project.
Each function includes:
- Detailed description
- Type definitions
- Example usage
- Edge cases and considerations