@tools-collection/tools
v0.1.0
Published
Pure business logic for 200+ online developer tools
Maintainers
Readme
@tools-collection/tools
Pure business logic for 200+ online developer tools. This package provides a comprehensive collection of utility functions for various tasks, including data conversion, validation, formatting, and generation.
Installation
npm install @tools-collection/toolsUsage
The package exports individual modules. You can import specific tools directly from their paths.
Examples
Base Conversions
import { decimalToHex } from '@tools-collection/tools/base-conversions';
const hex = decimalToHex(255); // "FF"AES Encryption (Note: Some tools are in subdirectories)
import { encryptAES, decryptAES } from '@tools-collection/tools/aes/aes';
const { encrypted, iv, salt } = await encryptAES('my secret', 'password123');Color Utilities
import { hexToRgb } from '@tools-collection/tools/color';
const rgb = hexToRgb('#FF0000'); // { r: 255, g: 0, b: 0 }Categories
The collection includes tools for:
- Converters: Base64, JSON to CSV, YAML, XML, etc.
- Validators: Email, URL, Credit Card, IBAN, etc.
- Formatters: JSON, CSS, SQL, XML, etc.
- Generators: UUID, Hash, QR Code, Lorem Ipsum, etc.
- Calculators: BMI, BMR, Loan, Mortgage, etc.
- Image Utilities: Resize, Crop, Convert, etc.
- Text Utilities: Diff, Minify, Escape, etc.
- Security: AES, Bcrypt, Hashing, etc.
Development
Prerequisites
- Node.js >= 18
Scripts
npm run build: Build the project (TypeScript compilation)npm run dev: Run in watch modenpm test: Run tests using Vitestnpm run lint: Lint code with ESLintnpm run format: Format code with Prettier
License
MIT
