Skip to content

Interactive CLI tools: json-to-types and curl-to-code

License

Notifications You must be signed in to change notification settings

muin-company/cli-tools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MUIN CLI Tools

Interactive CLI tools for developers.

Packages

Convert JSON to TypeScript, Zod, Python types with interactive CLI.

Features:

  • Interactive mode with live preview
  • Multiple output formats (TS Interface/Type, Zod, Python TypedDict/Pydantic)
  • Smart type inference (dates, nested objects, optional fields)
  • Copy to clipboard or save to file

Installation:

npm install -g @muin/json-to-types

Usage:

json-to-types --interactive
echo '{"name":"John"}' | json-to-types

Convert curl commands to production-ready code in any language.

Features:

  • Interactive mode with live preview
  • Multi-language support (Python, JS, Node, Go, PHP, Ruby)
  • Production-ready code with error handling
  • TypeScript types support

Installation:

npm install -g @muin/curl-to-code

Usage:

curl-to-code --interactive
pbpaste | curl-to-code --lang python

Keep your JavaScript bundles in check with interactive size analysis and tracking.

Features:

  • Bundle size analysis and tracking
  • Size limit enforcement with CI integration
  • Historical trends and comparison
  • Treemap visualization
  • Multi-bundle support

Installation:

npm install -g @muin/bundlesize

Usage:

bundlesize analyze dist/main.js
bundlesize check dist/main.js --max-size 200kb

Compare environment files, detect missing variables, and ensure configuration consistency.

Features:

  • Smart comparison of .env files
  • Missing variable detection
  • Secret detection and validation
  • Multi-environment support
  • Sync and template generation

Installation:

npm install -g @muin/envdiff

Usage:

envdiff .env.local .env.production
envdiff check .env --require .env.example

Validate, optimize, and understand your TypeScript configuration with intelligent recommendations.

Features:

  • Config validation and recommendations
  • Interactive wizard for perfect configs
  • Preset templates for common setups
  • Migration assistant for TypeScript upgrades
  • Strictness level checking

Installation:

npm install -g @muin/tsconfig-helper

Usage:

tsconfig-helper validate
tsconfig-helper recommend --project-type react

Generate professional, comprehensive README files from your project.

Features:

  • Interactive mode with smart project detection
  • Pre-built templates (CLI, Library, API, Framework, Monorepo)
  • Auto-generates badges, Installation, Usage, API docs
  • Multi-language support (EN, KO, JA, ZH)

Installation:

npm install -g @muin/readme-gen

Usage:

readme-gen --interactive
readme-gen --auto

Find unused dependencies, missing dependencies, and outdated packages.

Features:

  • Detect unused dependencies
  • Find missing dependencies
  • Check for outdated packages
  • Interactive mode with auto-fix

Installation:

npm install -g @muin/depcheck-lite

Usage:

depcheck-lite
depcheck-lite --interactive --fix

Validate package-lock.json integrity and ensure lock file consistency.

Features:

  • Lock file validation (npm, Yarn, pnpm)
  • Integrity checksum verification
  • Security vulnerability scanning
  • Version mismatch detection

Installation:

npm install -g @muin/lockcheck

Usage:

lockcheck
lockcheck --verify-integrity --security-only

Understand and generate cron expressions with natural language.

Features:

  • Convert cron to human-readable text
  • Generate cron from natural language
  • Interactive mode with validation

Installation:

npm install -g @muin/cron-explain

Usage:

cron-explain "0 9 * * 1"

Development

# Install dependencies
cd packages/json-to-types && npm install
cd packages/curl-to-code && npm install

# Build
npm run build

# Test
node dist/cli.js --help

License

MIT © MUIN

About

Interactive CLI tools: json-to-types and curl-to-code

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published