super_string
1.0.3, released 5 years ago by an unverified publisher
Provides common string manipulation and validation extension methods.
What it does
Extends the Dart String class with utilities like case checking, casing transformations, character indexing, word wrapping, and substring containment checks inspired by other programming languages.
AI-written summary of version 1.0.3, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need helper methods for string validation like isAlpha or isInteger.
- You want convenient methods for capitalizing, swapping case, or converting strings to camelCase and title case.
- You need to perform word wrapping or check if a string contains all or any items from a list.
Skip it when
- You only require standard Dart core string operations.
- You need complex localization or internationalization parsing.
Strengths
- Adds a comprehensive collection of missing utility methods to the core String class.
- Zero dependencies and lightweight.
- Simple API with straightforward extension methods.
Weaknesses
- Limited to string operations and lacks advanced text processing or templating features.
- No built-in localization awareness for string transformations.
Setup
- Kind
- Pure Dart
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
import 'package:super_string/super_string.dart';
void main() {
print('THIS'.isUpperCase); // => true
print('this'.capitalize()); // => 'This'
print('hello world'.toCamelCase()); // => 'HelloWorld'
}Alternatives
Packages that do the same job and could replace super_string.
- validators2
String validation and sanitization for Dart.
83Compare - cel
Parses and evaluates Common Expression Language (CEL) expressions in Dart.
77Compare - random_name_generator
Generate random names and surnames based on common names in various global zones.
50Compare - dartx
Collection of useful static extension methods for Dart core types.
50Compare
Works with
Packages commonly used together with super_string: ones it builds on, ones built on it, and its own family.