Skip to content

A dart package that converts a list of Map to a markdown formatted table. Inspired by Tomark python module. Note: Each Map in the list must have the same number of elements.

License

Notifications You must be signed in to change notification settings

allasca/map_to_md

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MapToMarkdown

A dart package that converts a list of Map to a markdown formatted table. Inspired by Tomark python module. Note: Each Map in the list must have the same number of elements.

Usage

import 'package:map_to_md/map_to_md.dart';

void main() {
  var md = MapToMarkdown();
  final data = [
    {
      "No": 1,
      "Date": "May",
      "Value": false,
    },
    {
      "No": 2,
      "Date": "June",
      "Value": true,
    },
  ];
  var res = md.table(data);
  print(res);
}

Table output

No Date Value
1 May false
2 June true

Raw output

| No | Date | Value |
|-----|-----|-----|
| 1 | May | false |
| 2 | June | true |

About

A dart package that converts a list of Map to a markdown formatted table. Inspired by Tomark python module. Note: Each Map in the list must have the same number of elements.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages