Retrieving output from Node script in a Grunt task
问题 I'm fairly new to Grunt, so this might be quite a basic question. I've got a Gruntfile.js that looks like this: /*global module:false*/ module.exports = function (grunt) { grunt.initConfig({ }); grunt.registerTask('default', 'measureText'); grunt.registerTask('measureText', 'Measures size of text', function() { grunt.log.writeln('========================================================================'); grunt.log.writeln('= output of ImageMagick should be on next line: ='); var im = require(