@devtools-cli/devtools-cli
v1.1.0
Published
A free collection of essential online developer tools. Convert Base64, format JSON, generate UUIDs, analyze strings, and more. Fast, simple, and easy to use.
Maintainers
Readme
@devtools-cli/devtools-cli
A powerful command-line interface (CLI) for essential developer utilities. Access a wide range of tools directly from your terminal, including Base64 encoding/decoding, JSON formatting, UUID generation, timestamp conversions, and more.
🌟 Features
- 🚀 Fast & Efficient: Perform common development tasks quickly without leaving your terminal.
- 🔧 Comprehensive Toolset: Includes tools for encoding, data formatting, text analysis, time conversions, and unique ID generation.
- 💻 Easy to Use: Simple command structure with clear arguments and options.
- 🌐 Cross-Platform: Works on any operating system with Node.js installed.
📦 Installation
Install the DevTools CLI globally using npm or pnpm:
npm install -g @devtools-cli/devtools-cli
# or
pnpm install -g @devtools-cli/devtools-cli🚀 Usage
Once installed, you can access the devtools command from your terminal:
devtools --helpThis will display a list of available commands and their descriptions.
Examples
Here are a few examples of how to use the devtools CLI:
Base64 Encoding/Decoding
# Encode text to Base64
devtools base64 encode "Hello, World!"
# Decode Base64 to text
devtools base64 decode "SGVsbG8sIFdvcmxkIQ=="JSON Formatting
# Format a JSON string with 4-space indentation
devtools json format '{"name":"John Doe","age":30}' --indent 4
# Minify a JSON string
devtools json minify '{"name":"John Doe","age":30, "city": "New York"}'
# Validate a JSON string
devtools json validate '{"name":"John Doe"}'UUID Generation
# Generate a single UUID v4
devtools uuid generate
# Generate 3 UUID v4s
devtools uuid generate --count 3
# Validate a UUID
devtools uuid validate "a1b2c3d4-e5f6-7890-1234-567890abcdef"Timestamp Conversion
# Get current Unix timestamp
devtools timestamp now --unix
# Convert Unix timestamp to ISO string
devtools timestamp to-iso 1678886400
# Convert ISO string to Unix timestamp
devtools timestamp to-unix "2023-03-15T00:00:00.000Z"Hexadecimal Conversion
# Convert hex to ASCII
devtools hex to-ascii "48656c6c6f"
# Convert ASCII to hex
devtools hex from-ascii "Hello"📚 Available Commands
The devtools CLI provides the following top-level commands:
base64: Base64 encoding and decoding utilities.json: JSON validation and formatting utilities.hex: Hexadecimal conversion utilities (to/from ASCII, binary, decimal).timestamp: Timestamp conversion utilities (Unix, ISO, human-readable).uuid: UUID generation and validation utilities.cron: Cron expression parsing and explanation.string: String analysis and case conversion tools.xml: XML formatting and validation.color: Color conversion and analysis.
For detailed usage of each command, use devtools [command] --help. For example:
devtools base64 --help
devtools json --help🤝 Contributing
Contributions are welcome! Please refer to the main project's CONTRIBUTING.md for guidelines.
📄 License
This project is licensed under the MIT License - see the LICENSE.MD file for details.
📞 Support
- 🐛 Issues: GitHub Issues
- 💬 Discussions: GitHub Discussions
Made with ❤️ by Abhishek Bansal
