graffle-json

OmniGraffle .OO3 to structured JSON converter

npm install graffle-json
3 downloads in the last month

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!
});
`

Example Output

[
    {
        value: 'It',
        children: [
            {
                value: 'To'
            },
            {
                value: 'Build'
            },
            {
                value: 'Nested'
            },
            {
                value: 'Hierarchical',
                children: [
                    {
                        value: 'Data'
                    }
                ]
            }
        ]
    },
    {
        value: 'Is'  
    },
    {
        value: 'Fun'
    }
]
`

Testing

vows test/*
npm loves you