Git Product home page Git Product logo

mindex's Introduction

mindex

A Mind-map generator for JSON / XML / CSV or HTML-tables (saved from Excel)

Mind-map tree


USAGE:

dotnet tool install -g mindex --no-cache

mindex path-to-json-or-csv-or-xml-or-html-file [header-rows-count-in-case-of-html]


JSON (hierarchical-tree-support)

{
  "name": "root",
  "parent": null,
  "children": [
    {
      "name": "child-1",
      "parent": "root",
      "children": [
        {
          "name": "sub-child-1",
          "parent": "child-1",
          "children": [
            {
              "name": "leaf-node",
              "parent": "sub-child-1",
              "url": "https://www.google.com",
            },
            ...
          ]
        },
        ...
      ]
    },
    ...
  ]
}

XML (hierarchical-tree-support)

<root xmlns:json="http://james.newtonking.com/projects/json">
    <name>root</name>
    <parent />
    <children json:Array="true">
        <name>child-1</name>
        <parent>root</parent>
        <children json:Array="true">
            <name>sub-child-1</name>
            <parent>child-1</parent>
            <children json:Array="true">
                <name>leaf-node</name>
                <parent>sub-child-1</parent>
                <url>https://www.google.com</url>
            </children>
            ...
        </children>
        ...
    </children>
</root>

CSV (flat-hierarchical / single-header)

header-1,header-2,header-3
child-1.1,child-2.1,child-3.1
child-1.2,child-2.2,child-3.2
...

HTML (hierarchical-tree-support using multiple tr / td with col-span) - Pass the headers-count as the last argument

<table>
    <tr>
        <td>
            ...
        </td>
        ...
    </tr>
    ...
</table>

# Install from local project path
dotnet tool install -g --add-source ./bin mindex

TODOs

  • Handle th / tbody in case of HTML tables
  • Accept custom-styles
  • Handle overflow-x on mobile-screens
  • Drag nodes
  • Use linkHorizontal

mindex's People

Contributors

vamsitp avatar

Stargazers

Albert K. avatar xukgo avatar Acampbell avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.