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 am using node.js to create a web application. When I run the application (either by opening index.html on the browser or using the command "npm start" on the terminal) I get two errors:      Uncaught ReferenceError: process is not defined...
I notice that Node defines both process.argv and process.ARGV (capitalized). The later isn't mentioned in the documentation and is, in every case I've encountered so far, the same object.  Is ARGV just a historic holdover, or does it have a p...
I'm building a simple app in which I'm trying to get the buffer, but seems that onaudio process in the following code isn't firing: (PasteBin)  <script> var audio_context; var recorder; window.onload = function init() {     try {...
I'm working with node.js and I want to when there's a request to a url like ./calculate start a new process to make these complex calculations, and I want that process to continue even if the script which called it has finished. Is it possibl...
I am creating a small proprietary game server manager in Node.js; currently it runs the game by spawning via child_process:  var server = spawn(cmd, args, { cwd: 'something' });   So long as the manager continues to run I can pipe commands an...
I got a little bit confused about my node.js application. As far as I thought, node.js runs in a single process. However if I start my application by invoking node app.jsand monitor it with htop, I can see 4 sub-processes running, where I'd expec...
How can I detect if, for example, a browser is currently open? I need this in my electron-application.  ty :)  I've found nothing like this online. I've only found how I can check which window is open from the windows I have in my own applica...
I'm trying to gzip some data using Node.js...  Specifically, I have data in 'buf' and I want to write a gzipped form of this to 'stream'.  Here is my code:  c1.on('data',function(buf){                 var gzip = spawn('...
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.