Skip to content

Latest commit

 

History

History
30 lines (23 loc) · 581 Bytes

README.org

File metadata and controls

30 lines (23 loc) · 581 Bytes

orga

Turns org-mode content into AST.

Install

npm install --save orga

Usage

const parse = require('orga')
const ast = parse(`* TODO remember the milk    :shopping:`)

ast is an object looks like this:

{ type: 'root',
  children:
   [ { type: 'headline',
       children: [ { type: 'text', children: [], value: 'remember the milk' } ],
       level: 1,
       keyword: 'TODO',
       priority: undefined,
       tags: [ 'shopping' ] } ],
  meta: {} }