https://github.com/zot/js-orgparser
Javascript parser for orgmode files
https://github.com/zot/js-orgparser
Last synced: 12 months ago
JSON representation
Javascript parser for orgmode files
- Host: GitHub
- URL: https://github.com/zot/js-orgparser
- Owner: zot
- Created: 2013-10-27T17:08:53.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2014-03-25T20:16:46.000Z (about 12 years ago)
- Last Synced: 2025-04-15T02:45:53.929Z (12 months ago)
- Language: CoffeeScript
- Size: 285 KB
- Stars: 2
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.org
Awesome Lists containing this project
README
* This is a JavaScript orgmode file parser
Each node contains all of its own text in the text property.
Node.text: the text local to the node (not the children)
Node.offset: the offset of the node's text in the file
Node.allText(): all of the text for the node and its descendants
Node.toJson(): a JSON representation of the node
Node.toString(): same as toJson()
Node.allTags(): all of the inherited tags for a node
Node.next: the next sibling node
Node.prev: the previous sibling node
Node.parent: the parent node
Node.top(): the top node