I am trying to write javascript which should run cmd.exe with a specified command line in it like this docs.google.com/file/d/0B7QHCoQDlEvKWUZSX3oxUDI2SDg/edit:  I prepare a code after reading shellexecute method on microsoft site:  var objShell = ne...
I installed it correctly I think.  My package.json     {       "name": "my-project",       "version": "0.1.0",       "devDependencies": {         "gulp": "^3.8.11",         "gulp-concat"...
I have a project of 100+ javascript files each with 1-5 missing semicolons according to JSHint (as a result multiple people working on the project with different conventions).  I'd like to bulk fix everything as it's not practical to fix each...
I've been trying to get handlebars to work with node using. My book has instructed me to install handlebars like this: npm install --save express3-handlebar. That threw an error   npm WARN deprecated express3-handlebars @0.5.2: THIS PACKAGE HAS B...
I wrote the following JavaScipt code which converts a binary number into a decimal number:  (function bin_dec(num) {   var x = num;   var result = 0;   for (var i = 0; i < x.length; i++) {     result += eval(x[x.length - i] * 2^i);   }   return re...
I'm writing a JScript program which is run in cscript.exe. Is it possible to run a commnad line command from within the script. It would really make the job easy, as I can run certain commands instead of writing more code in jscript to do the sam...
I'm writting a command line program which calculates the total price of an order, using info from a CSV file.  Data inside sample.catalog.csv:  P1,5,1000.00 P2,8,250.00 P3,15,125.00 P4,10,250.00 P5,2,2500.00   And the program must run from the co...
In my code I have var es = require('event-stream');   and in my package.json, I have   "scripts": {     "test": "istanbul cover ./node_modules/mocha/bin/_mocha -- -R spec", }   I only want to cover my main file, howeve...
I'm looking for a way to write some simple scripts in javascript, like I would in ruby.  For example, I might write a script like:  var str = "Hello World"; console.log(str);   And i want to able to call it from my command line like this:...
I'm using chrome's javascript console to debug some javascript. And often I'm using the interactive command line to display some variables. When I'm in a function (halted by a breakpoint), and type in the name of a parameter (in my ca...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.