Skip to content
XMind SDK for javascript (IN BOTH NODE.JS & BROWSERS)
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
demo restart again Aug 24, 2016
dist UMD as library target Apr 7, 2017
doc fix Makefile and add update history Mar 9, 2016
gulp clean Aug 25, 2016
lib #4 use in electron environment Oct 18, 2016
spec UMD as library target Apr 7, 2017
.editorconfig restart again Aug 24, 2016
.eslintignore .eslintignore Aug 24, 2016
.eslintrc renaming and linting Aug 24, 2016
.gitignore updating Feb 29, 2016
LICENSE restart again Aug 24, 2016
Makefile restart again Aug 24, 2016
README.md clean Aug 25, 2016
gulpfile.js restart again Aug 24, 2016
package.json UMD as library target Apr 7, 2017
webpack-dev.config.js restart again Aug 24, 2016
webpack-without-deps.config.js use xml-lite for an easier life Aug 31, 2016
webpack.config.js UMD as library target Apr 7, 2017

README.md

xmind-sdk-javascript

XMind SDK for javascript (IN BOTH NODE.JS & BROWSERS)

Usage (see API reference for more information)

npm install xmind
var xmind = require('xmind'),
    Workbook = xmind.Workbook;

// open xmind file
var workbookFromFile = xmind.open('path/to/xmind-file.xmind');

// creating a new xmind file
var workbook = new Workbook({
    firstSheetId: 'sheet-1',
    firstSheetName: 'primary sheet',
    rootTopicId: 'topic-1',
    rootTopicName: 'root topic'
});

// saving an xmind file
workbook.save('path/to/new-xmind-file.xmind');
// or
xmind.save(workbook, 'path/to/new-xmind-file.xmind');

// output as JSON String
workbook.toJSON();

// get the primary sheet
var sheet = workbook.getPrimarySheet();
// add a new sheet
var newSheet = workbook.addSheet(/*options*/);

// get the root topic
var rootTopic = sheet.rootTopic;

// add a subtopic
var subTopic = rootTopic.addChild(/*options*/);

API reference

Thanks to

xmind-sdk-javascript is built on top of all these fantastic projects:

and these projects helps a lot, too:

History

License (MIT License)

You can’t perform that action at this time.