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.

learn more… | top users | synonyms (2)

0
votes
1answer
11 views

How would you build a regex that splits a paragraph into sentences, but does not split on any punctuation that is inside <>?

Currently I have this regex to split a paragraph into sentences: /[^\.!\?]+[\.!\?]+/g. The issue though is that my paragraphs aren't just paragraphs of text. I have links in them like this: This is ...
0
votes
1answer
9 views

Multiple request pools with node.js request module

I'm using the node.js request module to fetch the contents of URLs. it works great, and I can even pass in maxSockets: XXX to have it do more in parallel. However, I have a few places in my code ...
0
votes
0answers
10 views

node.js rest client chrash after server shutdown

I have a question about node.js rest client restify. So I make request on server and I get a response (it prints nice on console) but when I shutdown my server my rest client chrashes with error : ...
0
votes
0answers
8 views

How to get signed request from facebook by node js

I am using https request in node js and try to get the code about signed request through https://www.facebook.com/dialog/oauth and I hope my code is correct. But the parameter res is always none. var ...
0
votes
1answer
13 views

How do I initialize two independent objects from same module in node.js/Javascript?

I am programming some mock server test cases for a program I am working on and have encountered an issue that i am unfamiliar with. Here is the simple rest server var restify = require('restify'); ...
0
votes
0answers
14 views

eclipse javascript syntax error on hashbang line

when I import some existing node.js code into the eclipse workspace, it complains with Syntax error on token "Invalid Character", delete this token on the #! /usr/bin/env/node hashbang line. How ...
0
votes
1answer
13 views

Node js Get folder path from a file

Is there a way to get the path to a folder that holds a particular file. fs.realpathSync('config.json', []); returns something like G:\node-demos\7-node-module\demo\config.json I just need ...
0
votes
1answer
18 views

Meteor running on my own infrastructure

After reading the Meteor official documentation regarding this subjet, I would like to know if it's possible to change my code, deploy the new version, but without restarting the node js server? My ...
0
votes
0answers
15 views

Node js and Socket.IO application architecture

I am working at a mobile game which needs persistent connections. I am using socket.io. As I am a beginer with node js and socket.io and cannot anticipate problems, my question is if this is a good ...
1
vote
3answers
54 views

Method that gets an element's child text, regardless of whether in <p> tag

I'm building a scraper in Node.js and have come up against a slight problem. I'm trying to build a function which gets an element's text, regardless of whether it's embedded in a <p> tag, in a ...
0
votes
0answers
14 views

Accessing local nodejs server from salesforce.com

I have set up a local server in my machine using nodejs. something like this: var fs = require("fs"); var config = JSON.parse(fs.readFileSync("config.json")); var host = config.host; var port = ...
0
votes
0answers
9 views

What is the best way I can interrogate a URL to retrieve media information?

Similar things exist when you add a link to a facebook post. The URL is interrogated and the correct media is found (usually the iframe which can be embedded) An example would be if the following ...
0
votes
0answers
10 views

Mongoose / Mongodb find, aggregate group, distinct based on a single field

I have some documents of the form below in my conversations collection which hold a chat between multiple people. threadId holds id of one of the users in conversation between 2. Conversation between ...
0
votes
1answer
9 views

Simplest nodejs echo server

I am getting acquainted with streams in nodejs and I have a question: I have what I think is the simplest possible nodejs "echo server" ie a server that simple pipes back to the response stream ...
-3
votes
0answers
28 views

Is there any serious server-side TypeScirpt framework or Node.JS? [closed]

I've been seraching some sort of framework for some time, however had no luck to found anything. Maybe someone can point me to one?

1 2 3 4 5 1593
15 30 50 per page