? node.js fs.readdir recursive directory search

Any ideas on an async directory search using fs.readdir? I realise that we could introduce recursion and call the read directory function with the next directory to read, but am a little worried about
 ? callback function within a loop raises a Lint error

This question already has an answer here: JSlint error 'Don't make functions within a loop.' leads to question about Javascript itself
 ? In the Node.js REPL, why does this happen?

So I was playing around with the Node.js REPL and the Underscore library when I noticed something very strange. If I require("underscore"), the variable _ is set globally (obviously). Then when I atte
 ? Run protractor on live-server via grunt

I am trying to run my portractor tests on live-server via one grunt task.I have installed live-server (https://www.npmjs.com/package/live-server) and grunt-execute. With grunt execute I managed to sta
 ? Checking error parameters in node

It is a convention in node to pass an error parameter to asynchronous operations:async.someMagicalDust(function(callback) { // some asynchronous task // […] callback();}, function(err) {
 ? Heroku fails to load resources for Cappuccino app (Nodejs)

Node.js web server:var express = require('express');var path = require('path');var favicon = require('serve-favicon');var logger = require('morgan');var cookieParser = require('cookie-parser');var bod
 ? Webpack + TypeScript + Module Loading

Basically, module loading is a pain in JavaScript right now sigh...So I have a TypeScript application I'd like to be compiled with webpack. The issue is that my editor (vscode) seems to expect that mo
 ? "as" notation with TypeScript, need to export a namespace?

I have this TypeScript code:import * as suman from 'suman';const Test = suman.init(module,{ ioc: { a: 'foo', b: 'far' } as suman.Ioc});As you can see I am trying to declare that th
 ? Declare type of function declaration instead of function expression

I am looking to declare the type of a function declaration, like this:function foo(){}however, I am not sure how to do this. Instead, I have simply been changing the above to a function expression lik
 ? Using Typescript's baseUrl compiler option with node

Can node's module loader support TS's baseUrl compiler option?TS 2 introduced the baseUrl compiler option, to effectively enable project relative require() and import requests.However, this requires t
 ? Get vaues from ExpressJS in Angular Universal app

I'm building an Angular2 Universal app and I'm integrating ng2-translate.Server side I need to know the language of the user, which I could get from ExpressJS via request.acceptsLanguages() (see docs)
 ? angular2 universal is very unstable - [nodemon] app crashed - waiting for file changes before starting

I am finding the starter repo from angular class very very unstable or just on how I am using it. My code works locally hitting the same service as remote yet I get the belowI followed the rules npm
 ? getting jquery like sytax from a node module

I'm building my first node module, and I'm hoping to get something akin to jQuery$(searchItem)so the code could look something like var $$ = require("myModule");$$(search).doAction();and the like, rat
 ? export array to csv Nodejs

I'm trying to export an array of data to a CSV file in Nodejs. I'm using the NodeCSV module, but I just get errors every time I try to follow the examples and documentation. It prints a bunch of code
 ? export array to csv Nodejs

I'm trying to export an array of data to a CSV file in Nodejs. I'm using the NodeCSV module, but I just get errors every time I try to follow the examples and documentation. It prints a bunch of code
 ? export array to csv Nodejs

I'm trying to export an array of data to a CSV file in Nodejs. I'm using the NodeCSV module, but I just get errors every time I try to follow the examples and documentation. It prints a bunch of code

Page 2 of 1264  |  Show More Pages:  Top Prev Next Last