graffle-json

0.0.3 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i graffle-json

Weekly Downloads

4

Version

0.0.3

License

none

Last publish

Collaborators

  • diy