Skip to main content

apiverve_filesizeformatter 1.2.4 copy "apiverve_filesizeformatter: ^1.2.4" to clipboard
apiverve_filesizeformatter: ^1.2.4 copied to clipboard

File Size Formatter converts raw byte counts into human-readable file size strings. Send a byte count with optional precision and unit settings to receive formatted labels, unit names, and scaled nume [...]

File Size Formatter API - Dart/Flutter Client #

File Size Formatter converts raw byte counts into human-readable file size strings. Send a byte count with optional precision and unit settings to receive formatted labels, unit names, and scaled numeric values.

pub package License: MIT

This is the Dart/Flutter client for the File Size Formatter API.

Installation #

Add this to your pubspec.yaml:

dependencies:
  apiverve_filesizeformatter: ^1.2.4

Then run:

dart pub get
# or for Flutter
flutter pub get

Usage #

import 'package:apiverve_filesizeformatter/apiverve_filesizeformatter.dart';

void main() async {
  final client = FilesizeformatterClient('YOUR_API_KEY');

  try {
    final response = await client.execute({
      'bytes': 1073741824,
      'unit': 'GB',
      'precision': 2,
      'standard': 'binary'
    });

    print('Status: ${response.status}');
    print('Data: ${response.data}');
  } catch (e) {
    print('Error: $e');
  }
}

Response #

// No sample response available

API Reference #

Authentication #

All requests require an API key. Get yours at apiverve.com.

License #

MIT License - see LICENSE for details.


Built with Dart for APIVerve

0
likes
0
points
911
downloads

Publisher

unverified uploader

Weekly Downloads

File Size Formatter converts raw byte counts into human-readable file size strings. Send a byte count with optional precision and unit settings to receive formatted labels, unit names, and scaled numeric values.

Homepage
Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

http, http_parser

More

Packages that depend on apiverve_filesizeformatter