Use graph-easy to convert text graphs into images
-
Grunt
-
graph-easy (on Debian: sudo apt install libgraph-easy-perl)
Install this plugin:
$ npm install grunt-graph-easy --save-dev
Include the task in your Gruntfile:
grunt.loadNpmTasks('grunt-graph-easy');
Run this task with the grunt graph-easy
command.
Type: String
Output format: ascii
, png
Default: guess it from destination file suffix
Type: String array
Additional options to be passed to graph-easy
.
graph-easy: {
main: {
files: {
'dist/images': 'graph/a.txt'
},
options:
format: 'ascii',
grapheasy: []
},
},
This task supports all the file mapping format Grunt supports. Please read Globbing patterns and Building the files object dynamically for additional details.
##License
Copyright (c) 2017 Lemoine Automation Technologies
Licensed under the MIT license.