1.1.0 • Published 1 year ago
@pp00x/auto-types v1.1.0
auto-types 🎯
Automatically install TypeScript type definitions for your project dependencies with zero configuration.
Features ✨
- 🔍 Automatically detects packages that need TypeScript definitions
- 🚀 Installs missing
@types/*packages with a single command - 📦 Works with existing
package.jsondependencies - ⚡ Zero configuration required
- 🛠️ Supports both interactive and CI environments
Installation 📥
npm install -g @pp00x/auto-typesUsage 💻
Scan Current Project
Simply run auto-types in your project directory to scan package.json and install missing type definitions:
auto-typesInstall New Packages with Types
Install new packages and their type definitions in one command:
auto-types install express lodash momentInstall Types for Specific Packages
Install type definitions for specific packages:
auto-types express lodash momentHow It Works 🔧
auto-types performs the following steps:
- Scans your project's dependencies
- Checks the NPM registry for available
@types/*packages - Automatically installs missing TypeScript definitions as dev dependencies
- Provides clear feedback about installed type packages
Requirements 📋
- Node.js ≥ 14
- npm ≥ 6
- TypeScript ≥ 4.0
Dependencies 📚
- axios: HTTP client for checking NPM registry
- chalk: Terminal string styling
- ora: Elegant terminal spinners
Contributing 🤝
Contributions are welcome! Please feel free to submit a Pull Request.
License 📄
This project is licensed under the Apache License 2.0 - see the LICENSE file for details.
Author ✍️
Created with ❤️ by Prashant Patil for the TypeScript community.