b
0.2.0, released 3 years ago by dart.dkinom.dev
Dart library for converting numbers between different numeral systems and custom bases.
What it does
Allows developers to convert string values between various numeral systems and custom bases (such as decimal, binary, octal, hexadecimal, base58, base62, base64) with support for inverse conversions and zero padding.
AI-written summary of version 0.2.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to convert values between different standard or custom numeral bases.
- You are working with custom character alphabets for number representation like base58 or base62.
Skip it when
- You are performing standard cryptographic hashing or encoding not related to arbitrary base conversions.
Strengths
- Supports a large list of exported standard alphabets (base2 through base64).
- Allows custom numeral symbols and zero padding options.
- Provides built-in inverse conversion support.
Weaknesses
- Limited in scope to base and numeral system conversions.
Setup
- Kind
- Pure Dart
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 2
final BaseConversion hexadecimalToBase58Converter = BaseConversion(
from: '0123456789abcdef',
to: base58,
);
final String base58Value = hexadecimalToBase58Converter('415a59758fb933b6049b050a556dd4d916b7b483f6966615');Alternatives
Packages that do the same job and could replace b.
- converter
Dart library for converting between different units of measurement for various quantities
49Compare - hex
Provides simple HEX.encode and HEX.decode functions for converting between byte lists and hexadecimal strings.
47Compare - mime2extension
Convert between MIME types and file extensions and detect file types from base64 data.
53Compare - convert
Encoders and decoders for converting between different data representations.
50Compare
Works with
Packages commonly used together with b: ones it builds on, ones built on it, and its own family.