Skip to main content

apiverve_markdowntable 1.2.6 copy "apiverve_markdowntable: ^1.2.6" to clipboard
apiverve_markdowntable: ^1.2.6 copied to clipboard

Markdown Table Generator converts structured data into properly formatted markdown tables with customizable column alignment.

Markdown Table Generator API - Dart/Flutter Client #

Markdown Table Generator converts structured data into properly formatted markdown tables with customizable column alignment.

pub package License: MIT

This is the Dart/Flutter client for the Markdown Table Generator API.

Installation #

Add this to your pubspec.yaml:

dependencies:
  apiverve_markdowntable: ^1.2.6

Then run:

dart pub get
# or for Flutter
flutter pub get

Usage #

import 'package:apiverve_markdowntable/apiverve_markdowntable.dart';

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

  try {
    final response = await client.execute({
      'headers': Name,Age,City,
      'rows': John Doe,30,New York,Jane Smith,25,Los Angeles,Bob Johnson,35,Chicago,
      'alignment': 'left'
    });

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

Response #

{
  "status": "ok",
  "error": null,
  "data": {
    "markdown": "| Name | Age | City |\n| --- | --- | --- |\n| John Doe | 30 | New York |\n| Jane Smith | 25 | Los Angeles |\n| Bob Johnson | 35 | Chicago |",
    "columnCount": 3,
    "rowCount": 3,
    "cellCount": 12,
    "headers": [
      "Name",
      "Age",
      "City"
    ],
    "alignments": [
      "left",
      "left",
      "left"
    ]
  }
}

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
140
points
616
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Markdown Table Generator converts structured data into properly formatted markdown tables with customizable column alignment.

Homepage
Repository (GitHub)
View/report issues
Contributing

License

MIT (license)

Dependencies

http, http_parser

More

Packages that depend on apiverve_markdowntable