WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

wesenbergg/fn-pasta

Repository files navigation

fn-pasta

License: MIT

A collection of utility functions you can copy and paste directly into your JavaScript and TypeScript projects.

🚀 Features

  • 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.

📦 Function Categories

  • 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.

🛠️ Development

Project Structure

.
├── 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

Commands

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

📝 Usage

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

📄 License

MIT © wesenbergg

About

A collection of utility functions you can copy and paste directly into your projects

Topics

Resources

License

Stars

Watchers

Forks