Skip to content
pubscout

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.

WASM-ready
$ flutter pub add basic_utils
Source repository

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.

Works with

Packages commonly used together with basic_utils: ones it builds on, ones built on it, and its own family.