Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@explita/daily-toolset

explita386MIT3.1.5TypeScript support: included

A lightweight and versatile collection of TypeScript utility functions and form components, inspired by ShadCN UI, for everyday development needs. Simplify and streamline your Node.js, React, and Next.js projects with a powerful suite of well-organized he

utility functions, TypeScript utilities, JavaScript utilities, common functions, helper functions, string utilities, array utilities, date utilities, object utilities, data validation, number utilities, npm utilities, React utilities, Next.js utilities, Node.js utilities, utility library, general purpose utilities, developer toolset, ES6 helpers, typescript helpers, npm package, components, hooks, form, form validation, form helpers, form utilities, react components, react hooks, react form, react form validation, react form helpers, react form utilities, next.js components, next.js hooks, next.js form, next.js form validation, next.js form helpers, next.js form utilities, shadcn ui, shadcn ui components

readme

Daily Toolset

Daily Toolset is a lightweight and versatile collection of TypeScript utility functions and form components (inspired by ShadCN UI), for everyday development needs. Simplify and streamline your Node.js, React, and Next.js projects with a powerful suite of well-organized helpers for strings, arrays, dates, objects, and customizable form elements. Perfect for building efficient, modern web applications with ease.

Features

  • String Manipulation: Format and process strings with ease.
  • Object Transformation: Effortlessly handle nested and flattened objects.
  • Chunk Splitting: Split data into manageable chunks for better handling.
  • Unique String Generation: Create random, secure strings for passwords or IDs.
  • And More!

Installation

Install the package via npm:

npm install @explita/daily-toolset --save

Quick Examples

import {
  chunkSplit,
  uniqueString,
  transformObject,
} from "@explita/daily-toolset";

// Split a number into groups
console.log(chunkSplit(123456789, { groupSize: 3, separator: "," })); // "123,456,789"

// Generate a random password string
console.log(uniqueString({ length: 12, isPassword: true })); // e.g., "A7*b8s@5Kd3!"

// Transform a flattened object to nested
console.log(transformObject({ "a.b.c": "value" })); // { a: { b: { c: "value" } } }

Documentation

For detailed documentation, including a comprehensive list of functions and their use cases, visit the Daily Toolset Documentation.


Contributing

Contributions are welcome! Please follow these steps:

  1. Fork the repository.
  2. Create a new branch (git checkout -b feature-branch).
  3. Commit your changes (git commit -am 'Add new feature').
  4. Push to the branch (git push origin feature-branch).
  5. Open a Pull Request.