A comprehensive collection of developer utilities and converters built with Docusaurus, featuring real-time data format conversion, ID generation, timestamp utilities, color manipulation, and more.
- Data Format Converters: JSON ↔ YAML ↔ XML ↔ CSV ↔ Query String
- ID Generators: UUID, NanoID, CUID, ULID, HEX
- Timestamp Converters: Unix timestamps, ISO 8601, relative time
- Color Converters: HEX, RGB, HSL, CMYK conversions
- Byte Size Converters: Human-readable byte size formatting
- String Converters: Case conversion, formatting utilities
- Class Converters: JavaScript class to named function conversion
- Node.js >= 18.0
- npm or yarn
npm install
# Start development server
npm start
# Build for production
npm run build
# Type checking
npm run typecheck
# Linting
npm run lint
npm run lint:fix
# Formatting
npm run format
npm run format:check
This project uses several tools to maintain code quality:
- ESLint: Code linting with TypeScript, React, and security rules
- Prettier: Code formatting
- Husky: Git hooks for pre-commit and pre-push checks
- lint-staged: Run linters on staged files only
- pre-commit: Runs ESLint and Prettier on staged files
- pre-push: Runs linting and type checking to ensure quality
The project supports clean imports using TypeScript path mapping:
// Instead of relative imports
import { convertDataFormat } from '../../converters/data-format-converter';
// Use clean aliases
import { convertDataFormat } from '@/converters/data-format-converter';
import { useThrottle } from '@/hooks/useThrottle';
Available aliases:
@/*
→src/*
~/
→src/
@/components/*
→src/components/*
@/converters/*
→src/converters/*
@/hooks/*
→src/hooks/*
@/utils/*
→src/utils/*
The project includes security-focused ESLint rules:
eslint-plugin-security
: Detects potential security vulnerabilitieseslint-plugin-sonarjs
: Code smell detection- Prevents dangerous patterns like
eval()
,innerHTML
, etc.
USE_SSH=true npm run deploy
GIT_USER=<Your GitHub username> npm run deploy
- Fork the repository
- Create a feature branch
- Make your changes
- Run linting and type checking:
npm run lint && npm run typecheck
- Commit with pre-commit hooks enabled
- Push and create a pull request
The CI pipeline will automatically:
- Run linting and formatting checks
- Verify TypeScript compilation
- Build the project