How to use the utils function from grunt

Find comprehensive JavaScript grunt.utils code examples handpicked from public code repositorys.

6
7
8
9
10
11
12
13
14
15

grunt.npmTasks([
  'enyo'
]);

var _ = grunt.utils._;
var template = grunt.template.process;

// Draw the help screen.
function displayHelp(withFlags) {
fork icon7
star icon10
watch icon5

74
75
76
77
78
79
80
81
82
  grunt.log.header((name + " tasks:").yellow);
  grunt.log.writeln();

  tasks.forEach(function(a) {
    grunt.log.writetableln(widths,
      ['', grunt.utils._.pad(a[0], col1len), '', a[1]]
    );
  });
}
fork icon0
star icon4
watch icon2