Skip to content

Latest commit

 

History

History
54 lines (32 loc) · 1.91 KB

README.md

File metadata and controls

54 lines (32 loc) · 1.91 KB

opml2json

A simple tool to convert opml files exported by Mindnode Pro to JSON consumable by D3 Javascript library.

What can I do with D3?

Look at some of the amazing stuff you can do with D3: examples are here

Why is this useful?

Mindnode makes it extremely simple to create trees of information. However, if you want to share that map with anyone, they need Mindnode too which is rather Apple device oriented and expensive. Using this tool, you can export your Mindnode tree to JSON. Then you can use D3 to create an interactive tree which users can see in their browsers.

This is what your Mindnode tree will look like in the browser: see example

Usage

You can use the tool from the command line in the following way

sudo node parser.js inputfile.opml outputfile.json

Or from Windows, open a command prompt as Administrator and then

node parser.js inputfile.opml outputfile.json

Testing

A sample Mindnode "file" (it is actually a folder) is included with this project. We have used this file with Mindnode Pro and exported to OPML.

The exported OPML file is also provided with the project. Go ahead try out this tool on the OPML file.

A zip archive is also included with includes a sample of the HTML required to use the generated file using D3.

If you run the sample on a server, it will look like the following:

Screenshot

Scenarios

You can create a Mindmap using Mindnode Pro, then press

Command + Shift + E

Select OPML as the output format and save your file.

Then you can use this tool to convert the OPML to JSON.

Prerequisites

You need Node.js installed on your computer