An open API service indexing awesome lists of open source software.

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

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