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'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 am writing a basic command line utility using node in Windows. Here is the file kevin.js  #!/usr/bin/env node console.log("Hello");   Below is my package.json  {   "name": "kevin",   "version": "0.0.0",   ...
Is there a shell for Javascript coding/experimenting using command line offering history, completion, help, debug, etc.? I found iPython very useful for quick Python scripting.  I looked at various shells like node, Rhino, JSDB, but their command lin...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.