0.0.3 • Published 12 years ago

graffle-json v0.0.3

Weekly downloads
10
License
-
Repository
github
Last release
12 years ago

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/*
0.0.3

12 years ago

0.0.2

12 years ago

0.0.1

12 years ago