{"id":17236287,"url":"https://github.com/leungwensen/xmind-sdk-javascript","last_synced_at":"2025-04-14T02:31:12.333Z","repository":{"id":44121579,"uuid":"38825637","full_name":"leungwensen/xmind-sdk-javascript","owner":"leungwensen","description":"XMind SDK for javascript (IN BOTH NODE.JS \u0026 BROWSERS)","archived":false,"fork":false,"pushed_at":"2022-02-12T03:05:19.000Z","size":1243,"stargazers_count":143,"open_issues_count":8,"forks_count":26,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-04-11T11:50:30.507Z","etag":null,"topics":["javascript","mindmap","xmind","xmind-sdk"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/leungwensen.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-07-09T14:34:47.000Z","updated_at":"2025-02-24T00:38:09.000Z","dependencies_parsed_at":"2022-08-12T11:00:34.677Z","dependency_job_id":null,"html_url":"https://github.com/leungwensen/xmind-sdk-javascript","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leungwensen%2Fxmind-sdk-javascript","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leungwensen%2Fxmind-sdk-javascript/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leungwensen%2Fxmind-sdk-javascript/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leungwensen%2Fxmind-sdk-javascript/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/leungwensen","download_url":"https://codeload.github.com/leungwensen/xmind-sdk-javascript/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248810883,"owners_count":21165195,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["javascript","mindmap","xmind","xmind-sdk"],"created_at":"2024-10-15T05:35:50.395Z","updated_at":"2025-04-14T02:31:11.829Z","avatar_url":"https://github.com/leungwensen.png","language":"JavaScript","readme":"xmind-sdk-javascript\n====================\n\nXMind SDK for javascript (IN BOTH NODE.JS \u0026 BROWSERS)\n\n## Usage (see [API reference](doc/api.md) for more information)\n\n```shell\nnpm install xmind\n```\n\n```javascript\nvar xmind = require('xmind'),\n    Workbook = xmind.Workbook;\n\n// open xmind file\nvar workbookFromFile = xmind.open('path/to/xmind-file.xmind');\n\n// creating a new xmind file\nvar workbook = new Workbook({\n    firstSheetId: 'sheet-1',\n    firstSheetName: 'primary sheet',\n    rootTopicId: 'topic-1',\n    rootTopicName: 'root topic'\n});\n\n// saving an xmind file\nworkbook.save('path/to/new-xmind-file.xmind');\n// or\nxmind.save(workbook, 'path/to/new-xmind-file.xmind');\n\n// output as JSON String\nworkbook.toJSON();\n\n// get the primary sheet\nvar sheet = workbook.getPrimarySheet();\n// add a new sheet\nvar newSheet = workbook.addSheet(/*options*/);\n\n// get the root topic\nvar rootTopic = sheet.rootTopic;\n\n// add a subtopic\nvar subTopic = rootTopic.addChild(/*options*/);\n```\n\n## [API reference](doc/api.md)\n\n## Thanks to\n\nxmind-sdk-javascript is built on top of all these fantastic projects:\n\n* [Stuk/jszip](https://github.com/Stuk/jszip.git)\n* [eligrey/FileSaver.js](https://github.com/eligrey/FileSaver.js.git)\n* [jindw/xmldom](https://github.com/jindw/xmldom.git)\n\nand these projects helps a lot, too:\n\n* [xmindltd/xmind-sdk-python](https://github.com/xmindltd/xmind-sdk-python.git)\n* [xmindltd/xmind](https://github.com/xmindltd/xmind.git)\n* [Mekk/mekk.xmind](https://bitbucket.org/Mekk/mekk.xmind)\n\n## [History](doc/history.md)\n\n## [License (MIT License)](doc/license.md)\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleungwensen%2Fxmind-sdk-javascript","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleungwensen%2Fxmind-sdk-javascript","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleungwensen%2Fxmind-sdk-javascript/lists"}