- Notifications
You must be signed in to change notification settings - Fork26
XMind SDK for javascript (IN BOTH NODE.JS & BROWSERS)
License
NotificationsYou must be signed in to change notification settings
leungwensen/xmind-sdk-javascript
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
XMind SDK for javascript (IN BOTH NODE.JS & BROWSERS)
Usage (seeAPI reference for more information)
npm install xmind
varxmind=require('xmind'),Workbook=xmind.Workbook;// open xmind filevarworkbookFromFile=xmind.open('path/to/xmind-file.xmind');// creating a new xmind filevarworkbook=newWorkbook({firstSheetId:'sheet-1',firstSheetName:'primary sheet',rootTopicId:'topic-1',rootTopicName:'root topic'});// saving an xmind fileworkbook.save('path/to/new-xmind-file.xmind');// orxmind.save(workbook,'path/to/new-xmind-file.xmind');// output as JSON Stringworkbook.toJSON();// get the primary sheetvarsheet=workbook.getPrimarySheet();// add a new sheetvarnewSheet=workbook.addSheet(/*options*/);// get the root topicvarrootTopic=sheet.rootTopic;// add a subtopicvarsubTopic=rootTopic.addChild(/*options*/);
xmind-sdk-javascript is built on top of all these fantastic projects:
and these projects helps a lot, too:
About
XMind SDK for javascript (IN BOTH NODE.JS & BROWSERS)
Topics
Resources
License
Stars
Watchers
Forks
Packages0
No packages published