I'm using Mocha for testing my apps. Currently, I'm using Makefiles, but I want to switch to Cakefiles. When I run my test through Cake, the colors from Mocha are not displayed on console.  Here's an example:  task 'test', 'te...
I have this regex variable:  var regexp = new RegExp(RegExp.quote(myExpression) + '\\b', 'g');   which searches for expression that has a space after it. (RegExp.quate() I got from this How to escape regular expression in javascript?)...
In Node.js I'm using the exec command of the child_process module to call an algorithm in Java that returns a large amount of text to standard out which I then parse and use. I'm able to capture it mostly, but when it exceeds a certain number...
I have a task that registred in grunt config:  grunt.registerTask('test_Branches',          'Run Branches check on windows',       require('PATH').check);   And in my branches.test.js I have method check():  this.check = funct...
I need in node.js function  result = execSync('node -v');   that will synchronously execute the given command line and return all stdout'ed by that command text.     ps. Sync is wrong. I know. Just for personal use.   UPDATE  Now we have...
Suppose you want to launch a (random) process for every folder in a list in a short code:  var exec = require('child_process').exec; var folders = [...]; // a list from somewhere  _.each(folders, function(folder) {     exec("tar cvf "...
I am performing an image magick identify command via nodejs child_process.exec. and using the string returned from stdout in my script.  Everything works fine but the call prints the stdout msg on console, if the server is not restarted and the conso...
I'm completely lost with figuring out why my PHP script produces different results when run via CLI (producing the right results) vs when run within Node.js via the exec function.  Here's my PHP. Note the fopen('blah.txt', 'w'...
I have this text:  <div id="myDiv">     myText: something1     othertext     myText: something2     othertext     myText: something3     .... <div>   I'm matching only the text after the string: myText: on multiple lines using...
I'm trying to determine if a java runtime environment is installed on the computer running my node app. Here's the promise I'm starting to build out to determine if it's installed:  FileSystemTools.prototype.checkToSeeIfJavaRuntimeEnv...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.