node package manager

graffle-json

OmniGraffle .OO3 to structured JSON converter

Graffle-JSON

OmniGraffle .OO3 to structured JSON converter

Install

npm install graffle-json

Basic Use

var graffle = require('graffle-json');
 
graffle.convert('path/to/file.oo3', function (err, obj) {
    console.dir(obj); // Win! 
});

Binary Use

npm install -g graffle-json
jgraffle ./path/to/file.oo3

Example Output

[
    {
        "value": "This",
        "children": [
            {
                "value": "As"
            },
            {
                "value": "A"
            },
            {
                "value": "Jumping"
            },
            {
                "value": "Rope",
                "children": [
                    {
                        "value": "You"
                    },
                    {
                        "value": "Prob'ly'"
                    },
                    {
                        "value": "Think"
                    },
                    {
                        "value": "That"
                    },
                    {
                        "value": "I'm"
                    },
                    {
                        "value": "A"
                    },
                    {
                        "value": "Dope"
                    }
                ]
            }
        ]
    },
    {
        "value": "Started"
    },
    {
        "value": "Out"
    }
]

Testing

vows test/*