new_version_of_string_util_ 1.0.0
new_version_of_string_util_: ^1.0.0 copied to clipboard
A Dart package for string manipulation and validation utilities.
StringUtils - A Dart String Utility Library #
🚀 StringUtils is a simple Dart package that provides useful string manipulation and validation functions.
📌 Features
- ✅ Convert strings to camelCase, PascalCase, snake_case, and kebab-case
- ✅ Trim and clean unwanted characters
- ✅ Reverse strings
- ✅ Extract numbers from text
- ✅ Validate emails, check for palindromes, and assess password strength
📦 Installation
Add the package to your pubspec.yaml:
dependencies: string_util: latest_version
Then, run: dart pub get
🔹 Usage Import the package: """ import 'package:string_util/string_util.dart';
void main() { // Reverse a string print(StringUtils.reverseString("hello")); // Output: "olleh"
// Convert case print(StringUtils.toCamelCase("hello world")); // Output: "helloWorld"
// Validate email print(StringUtils.isValidEmail("test@example.com")); // Output: true
// Check palindrome print(StringUtils.isPalindrome("racecar")); // Output: true } """
🛠️ Contributing We welcome contributions! Feel free to open an issue or submit a pull request.
📄 License This package is licensed under the MIT License.