Giter VIP home page Giter VIP logo

malta-graphviz's Introduction


npm version npm downloads npm downloads

This plugin can be used on all files, although using it without providing the right input file content format does not make any sense.

graphviz is a mandatory dependency (brew install graphviz)
thus dot needs to be available from the console.

Parameters :
- cmd : one among 'dot','neato','twopi','circo','fdp','sfdp','patchwork','osage' (default : 'dot')
- options : refer to dot manual (man dot)
- outName : the output file path name
- files ? : not needed since the files parameter You might refer into the dot manual here is the single malta template which is expected to contain the right syntax
- del: 0 to not delete the out tpl, default is 1

The malta outfile will be deleted automatically.

Sample usage, in the .json file :

"test.dot": "out -plugins=malta-graphviz[options:\"-Tjson\",outName:\"test.json\"]"

or in a script :

var Malta = require('malta');
Malta.get().check([
    'app/source/test.dot',
    'public/js',
    '-plugins=malta-graphviz[cmd:\"neato\",options:\"-Tpng\",outName:\"test.png\"]',
    '-options=showPath:false,watchInterval:500,verbose:0'
    ]).start(function (o) {
        var s = this;
        console.log('name : ' + o.name)
        console.log("content : \n" + o.content);
        'plugin' in o && console.log("plugin : " + o.plugin);
        console.log('=========');
    });

malta-graphviz's People

Contributors

fedeghe avatar signavio-fghedina avatar

Watchers

James Cloos avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.