3.2.2 • Published 1 year ago
org2json v3.2.2
org2json
library for converting org files to json and back.
examples
converting org to json
import { orgToJson } from "org2json";
const fs = require("fs");
console.log(orgToJson(fs.readFileSync("./inbox.org")));
converting json to org
import { orgToJson } from "org2json";
const notes = [{ title: "hi" }];
console.log(jsonToOrg(notes));
what's supported?
- Title
- Tags
- Description
- Nesting
- Properties
- [] Lists
- [] Tables
- [] Comments
- [] Links
- [] Images
- [] markup