Node.js is an event-based, asynchronous I/O framework that uses Google's V8 JavaScript engine. Node.js is commonly used for heavy client-server JavaScript applications.
0
votes
0answers
4 views
When building an SMTP server in Node.js, how can I ensure encrypted and/or secure email?
This is a question about a library or libraries you recommend in Node.js and patterns / settings to ensure email is encrypted before sending and decrypted upon receipt.
Email authentication is not ...
0
votes
1answer
9 views
Why async.series doesn't work in REPL for the code below?
request(source_url).pipe(async.series([
function() {
fs.createWriteStream(path_for_downloads + path.basename(source_url));
},
function() ...
0
votes
0answers
3 views
Node.js parent path from server.js
My is there c:\nodejs\www\project\bin\server.js
My views are in c:\nodejs\www\project\views
Then in my server.js I have:
.set('views', __dirname + '/views')
But the generated path is: ...
0
votes
0answers
16 views
node.js + express API status code 200 but client still pending
I've got a very simple and straightforward API written in Node.js and Express that works just fine, but every now and then, the jQuery.post call will remain "Pending" (and eventually timeout). On the ...
0
votes
1answer
7 views
Why node.js async module stops after the first step using async.eachLimit(array, limit, function, callback)?
If I use this code:
async.eachLimit(body.photos.photo, 10, function(photo) {
var flickr_getphoto_path = ".....";
request.get({url: flickr_host_url + flickr_getphoto_path, json: ...
0
votes
0answers
22 views
undefined symbol - Adding libraries to node.js addon
I'm working in a project where i need to create some node.js addons. In my addons i have to include some libraries from another software we are using. I'm using node-gyp to compile the code. This is ...
1
vote
0answers
11 views
Node.js, Express, Jade & Template in Package
Is it possible to store templates for an express application in a separate package?
In my usecase I'd like to have a shared package containing global templages to give all apps the same look and feel ...
2
votes
1answer
21 views
Full async request to Mongodb via node.js
Before I render a page, I have to make several requests to mongodb. Here is how I do it now (db.js is my database processing layer):
db.findUser(objid, function(result1){
db.findAuthor(objid, ...
0
votes
0answers
14 views
How do I use raw_input in node.js?
I want my application to say: "Press enter to continue..."
In Python, I know it's raw_input, but what is it in node.js?
How can I deal with it even though node.js is async?
2
votes
1answer
60 views
Javascript heavily executed functions: inline or declared?
Is it safe to assume that for time critical applications it is always better to use function declaration or function expressions, instead of inline functions in heavily executed callbacks?
Consider ...
0
votes
0answers
28 views
Should I remove require values on browser
In this case .
Module = require("module").Module;
but browser doesn't require function
so it said "require is not defined"
Can you help me with a smart solution?
1
vote
3answers
48 views
Is it possible to know when a property is deleted?
var o = { a: 1 };
delete o.a;
I want to be notified when the property is deleted, similar to the getter and setter accessor descriptors.
Is it possible?
2
votes
2answers
29 views
Two apps in expressjs
I am building an app with express js which will have different clients like web and mobile. I didnt want to use one app for both as some middleware would be additional burden. For say like session ...
0
votes
1answer
11 views
Unable to install user-stream - npm module
While I try to install user-stream on Node.js I obtain this error.
root@mongodb ~/Server# npm install user-stream
npm ERR! Error: ENOENT, open ...
0
votes
0answers
13 views
module MySQL nodejs
I have a problem with the mysql module
this is is my part of code for testing connection :
var express = require('express');
var mysql = require('mysql');
var fs = require('fs');
var app = express()
...