Questions tagged [node.js]
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.
26 questions
9
votes
2
answers
2k
views
Enforcing set environment variables
Context
I have a node.js application that uses many other modules and libraries. Some of these modules pull details from process environment variables, such as URL's for databases, credentials, and so ...
8
votes
2
answers
381
views
Local user registration
More javascript (nodejs) to go with the passport wrapper I just posted:
UserBook.js
...
11
votes
1
answer
622
views
node.js Passport Wrapper 2
First attempt was done here:
My second attempt (now using jslint to make sure the spacing is correct and have incorporate the majority of the feedback from previous attempt).
...
9
votes
1
answer
92
views
get-release npm module
Solved, question with improved code
I've created a simple npm module and CLI program to get the latest GitHub and Bitbucket release from their APIs using Node.js. Please tell me if there's anything to ...
8
votes
2
answers
301
views
Simple Node.js version manager
On Arch Linux, there are 2 packages that provide the Rust toolchain: rust itself and rustup. When users try to install a package ...
6
votes
2
answers
501
views
Selection Sort Algorithm (Node.js)
I wanted to implement a selection sort and wanted to make sure that I'm doing it correctly. I wanted to do it in a way that's efficient and use recursion. Please let me know if I am doing this ...
5
votes
1
answer
468
views
node.js Passport Wrapper 3
First attempt was done here
Second attempt was done here
Huge comment at top
...
3
votes
1
answer
73
views
(Improved) get-release npm module
Improved version of the original question
I've created a simple npm module and CLI program to get the latest GitHub and Bitbucket release from their APIs using Node.js. Please tell me if there's ...
3
votes
1
answer
2k
views
Concurrent fire and forget async task queue
I had to do a lot of IO stuff on my server running Node JS where I did not really care about the result of the operations. The list of incoming tasks could be huge, so I had to limit the number of ...
2
votes
2
answers
166
views
Find differences between two arrays
I have to identify added and deleted items between two objects with the same structure.
...
2
votes
1
answer
592
views
Dependency Injection with classes which are created often
I have a question about dependency injection and best practices when using simple classes which are meant to be created often, which have dependencies on external services. Here's a (vastly) ...
2
votes
1
answer
1k
views
Text notifications for Facebook Marketplace posting
Application Summary
I received a call from a client asking for a "simple app" that notified him via text message whenever a "Jeep Wrangler" is posted to Facebook Marketplace. It ...
1
vote
2
answers
130
views
Achieve error differentiation in Promises
Background
I have a REST API using MongoDB, Node.js and Express that makes a request to my NoSQL DB and depending on different results, I want to differentiate which error I send the customer.
...