Skip to main content

mock-data

Generate realistic mock data from TypeScript types

설치로 이동

소스 정보

저장소
RunnerQuan/SAFE-Agent
최근 소스 활동
2026년 3월 30일 04:33
감지된 SKILL.md 언어
영어
스타
0
포크
0

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

파일 탐색기
4 개 파일

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
mock-data
description
Generate realistic mock data from TypeScript types
# Mock Data Generator Give it your types, get realistic fake data. Perfect for tests and development. ## Quick Start ```bash npx ai-mock-data ./src/types/User.ts ``` ## What It Does - Reads TypeScript interfaces - Generates realistic fake data - Understands field names (email, phone, etc.) - Creates arrays with varied data ## Usage Examples ```bash # Generate from type file npx ai-mock-data ./src/types/Order.ts # Generate specific count npx ai-mock-data ./types/User.ts --count 50 # Output as JSON file npx ai-mock-data ./types/Product.ts --out ./fixtures/products.json # Generate for specific type npx ai-mock-data ./types/index.ts --type Customer ``` ## Output Example ```json [ { "id": "usr_8x7k2m", "email": "sarah.chen@gmail.com", "name": "Sarah Chen", "createdAt": "2024-01-15T09:23:00Z" } ] ``` ## Smart Field Detection - `email` → realistic emails - `phone` → formatted phone numbers - `address` → real-looking addresses - `price` → appropriate currency values ## Requirements Node.js 18+. OPENAI_API_KEY required. ## License MIT. Free forever. --- **Built by LXGIC Studios** - GitHub: [github.com/lxgicstudios/ai-mock-data](https://github.com/lxgicstudios/ai-mock-data) - Twitter: [@lxgicstudios](https://x.com/lxgicstudios)
GitHub에서 보기