basic_utils
5.8.2, released 2 years ago by an unverified publisher
Common utility classes for Strings, Dates, X509, PKCS, Cryptography and HTTP requests.
What it does
Provides a collection of helper classes for common string operations, domain and email validation, cryptographic functions, X509 certificates, PKCS12 files, and basic HTTP operations.
AI-written summary of version 5.8.2, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need helper functions for string manipulation, math operations, or color utilities.
- Your application deals with X509 certificates, CSR generation, or cryptographic operations in pure Dart.
- You need simple HTTP request helpers or DNS lookup utilities.
Skip it when
- You only need a specific well-maintained library for cryptography or networking and want to avoid a broad utility dependency.
Strengths
- Wide variety of helper classes in a single package ranging from strings to crypto and X509 certificates.
- Pure Dart package compatible with all platforms including web, mobile, and desktop.
Weaknesses
- Monolithic utility packages can lead to unused code if only a small subset of features is required.
Setup
- Kind
- Pure Dart
- Effort
- Low
- Code generation
- Yes (build_runner)
- Direct dependencies
- 5
import 'package:basic_utils/basic_utils.dart';
void main() {
bool isEmail = EmailUtils.isEmail('test@example.com');
String randomized = StringUtils.generateRandomString(10);
}Alternatives
Packages that do the same job and could replace basic_utils.
- validators2
String validation and sanitization for Dart.
83Compare - extension_utils
Dart and Flutter extension library for strings, collections, dates, numbers, and colors.
74Compare - flutter_class_parser
Serialize and deserialize common Flutter UI data classes and widgets.
70Compare - tempo
A time and date solution replacing core DateTime with advanced arithmetic and time zone support.
71Compare
Works with
Packages commonly used together with basic_utils: ones it builds on, ones built on it, and its own family.
- archivebasic_utils depends on itEncodes and decodes archive and compression formats such as zip, tar, gzip, and zlib.
- json_annotationbasic_utils depends on itProvides annotations for json_serializable to generate JSON (de)serialization code.
- loggingbasic_utils depends on itProvides configurable logging with levels and stream listeners for Dart apps.
- pointycastlebasic_utils depends on itA Dart library providing a wide range of cryptographic algorithms and primitives.
- mongo_dartBuilt on basic_utilsMongoDB driver implemented in pure Dart for server-side applications.
- enough_mailBuilt on basic_utilsIMAP, POP3, and SMTP email library with high and low-level APIs and MIME parsing.
- shelf_letsencryptBuilt on basic_utilsLet's Encrypt support and automatic HTTPS certificate management for the shelf package.
- xml_cryptoBuilt on basic_utilsXml digital signature library for Dart for signing and verifying XML documents.