Package selection guidance compiled from public package information, community data, and project usage.
Stringr is a comprehensive Dart package for advanced string manipulation, supporting Latin, non-Latin, and grapheme cluster handling with precision. Inspired by Voca.js, it offers a rich set of methods for transforming and analyzing text across diverse scripts. Ideal for internationalized applications requiring robust string operations, it ensures accurate handling of complex Unicode characters. The package integrates seamlessly into Flutter apps across all major platforms.
Use cases
Internationalized text processing
Text normalization and cleaning
String transformation utilities
Handling multilingual content
Data validation and sanitization
Grapheme cluster-aware operations
Key features
Support for Latin and non-Latin scripts
Grapheme cluster awareness
Voca.js-inspired API design
Cross-platform compatibility
Unicode-safe string operations
Extensive method set for text manipulation
Suitable for
Apps requiring multilingual support
Developers needing robust string tools
Projects involving text analysis
Flutter apps targeting global audiences
Teams using Unicode-heavy data
Considerations
May add overhead for simple string tasks
Requires understanding of Unicode and graphemes
Limited documentation beyond basic usage
Not optimized for high-performance bulk operations
Best suited for moderate to complex string needs
Original README
Original README snapshot from the linked source repository. Visit the repository for the latest content.
stringr
A comprehensive string manipulation library for Dart and Flutter. Inspired by VocaJS, stringr provides powerful string operations that work seamlessly with Latin, non-Latin, and Unicode strings.
Features
Case Conversion - camelCase, snake_case, kebab-case, Title Case, PascalCase
Unicode Support - Full support for non-Latin scripts, diacritics, and grapheme clusters
Smart Word Detection - Uses regex patterns instead of simple whitespace splitting
Null Safety - Fully null-safe and compatible with Dart 3.0+
Zero Dependencies - Only depends on the characters package for grapheme support