Data dodania Pytanie
2017-08-07 21:08 Forked repo doesn't add itself to .bin »
Running yarn add graphql-typewriter adds symlink to an executable inside node_modules/.bin/. However, running the same command on a forked version of ...
(1) odpowiedzi
2017-08-07 20:08 package.json script conditional »
I have a node script that checks for some conditions. Lets call it condition.js. I have another script which runs my program, lets call it runner.js. ...
(1) odpowiedzi
2017-08-07 20:08 Calling Facebook Messenger API in a synchronous fashion »
I'm using the Facebook Messenger API to create a very basic chatbot. I want to be able to send a series of messages in individual bubbles. However, wh...
(1) odpowiedzi
2017-08-07 17:08 Express js and EJS weird behaviour on render »
I'm making my app using electron as main framework, express.js as middleware and ejs as rendering engine. i've several calls on express and everything...
(0) odpowiedzi
2017-08-07 12:08 NodeJS Microservices, combining data »
I'm building a NodeJS platform that consist of several core 'parts' (users, messages and trading signals). So my idea is to create microservices for ...
(1) odpowiedzi
2017-08-07 08:08 How to get values of checkbox in node js using ejs? »
My Code: Html File: <form action="/form" method="post" enctype="multipart/form-data"> Name: <input type="text" name="name" /...
(1) odpowiedzi
2017-08-06 23:08 EJS Syntax error, not able to render records in browser from MongoDb »
Index.ejs written as below : <% include ../views/partials/header %> <ul> <% todos.forEach(function(todo){ %> <li&gt...
(0) odpowiedzi
2017-08-06 22:08 Node.JS: Best way to handle max requests per minute to a server »
I'm sorry if this question as already been answered and I hope I'm not breaking any SO rule, if so, in advance I apologise... I was wondering what wa...
(3) odpowiedzi
2017-08-06 15:08 Express only works on port 3000 »
My app only works on port 3000. If i change port to anything else, it'll work but when a page loads it occurs this error. abc is not defined ...
(3) odpowiedzi
2017-08-06 10:08 Javascript background loop »
Say we have a loop.js file: longLoop().then(res => console.log('loop result processing started')) console.log('read file started') require('fs').r...
(1) odpowiedzi
2017-08-05 23:08 Are you able to use vue.js inside an ejs file? »
Sorry guys I am new to node.js and was wondering whether we are allowed to use vue.js within an ejs file. ...
(0) odpowiedzi
2017-08-05 18:08 Force ignore one dependency's dependency from being installed by npm/yarn »
My nodejs project uses some libraries. One library pouchdb will try to install quite a lot of dependencies. There is one called leveldown, which will ...
(1) odpowiedzi
2017-08-05 17:08 ionic app not finding providers in linked package »
I have an ionic app and angular web app that both consume the same REST API. For initial development I had the api implementation code copied in both ...
(1) odpowiedzi
2017-08-05 11:08 direct upload string from browser to s3 without local file »
I am using javascript, node.js and aws sdk. There are many examples about uploading existing files to S3 directly with signed URL, but now I am trying...
(3) odpowiedzi
2017-08-04 14:08 Render ejs from jquery? »
I want to render a file after getting the data from the Api. code $(document).ready(function() { $(document).delegate( "#editUser", "click", func...
(1) odpowiedzi
2017-08-04 07:08 Using express-flash with EJS »
I am trying to adapt my error code so it can also handle other types of error like success For example, when I render the sign up page res.render(...
(0) odpowiedzi
2017-08-04 02:08 Adding image as variable in Hexo (ejs template) »
In my .md file I specified blogpost-image as a new front-end variable. In my article.ejs file I have following: <div class="blogpost-image"><...
(0) odpowiedzi
2017-08-03 20:08 CSS - ejs not finding css file »
ejs seems to not be able to find main.css here, can anyone tell me why? header.ejs: <!DOCTYPE html> <html lang="en"> <head> ...
(0) odpowiedzi
2017-08-03 19:08 Pass command line variable into npm script? »
I am trying to pass a command line (specifically not in version control) option to my main index.js script, which does some stuff based on a specific ...
(1) odpowiedzi
2017-08-03 18:08 What does single & and single | operators do in flow js? »
There is a piece of code in one of the files in react-native repo here as shown below: export type Operation = & {instanceID: DebugID} & ...
(1) odpowiedzi
2017-08-03 15:08 Node.js call calback function inside for loop »
I am trying to call a function inside a for loop and the problem is that the function is called after the loop was finished. Taking the below as an e...
(2) odpowiedzi
2017-08-02 20:08 routing in Node / express »
app.js: var express = require('express'); var path = require('path'); var favicon = require('serve-favicon'); var logger = require('morgan'); var coo...
(2) odpowiedzi
2017-08-02 18:08 Verify that an exception is thrown using Mocha / Chai and async/await »
I'm struggling to work out the best way to verify that a promise is rejected in a Mocha test while using async/await. Here's an example that works, b...
(1) odpowiedzi
2017-08-02 13:08 Compiling NodeJS as native library on Android »
I have recently been trying to port a number of NodeJS-based modules to React Native by browserifying / shimming the various Node API objects. But I b...
(1) odpowiedzi
2017-08-02 12:08 Is this right way to release the connection? »
As you know Node.js statements are async. So I write code in following way. But I can't make sure if the connection is released or not. Why, because ...
(0) odpowiedzi
2017-08-02 12:08 HTML Page Break Issue »
I am converting HTML into PDF and its working perfectly but I have an issue with how data is being displayed. I have an array of strings and I am loo...
(1) odpowiedzi
2017-08-01 15:08 Why we need to pass module.exports as a parameter since we are already passing module as a parameter? »
I have been going through some online tutorials on Node.js. What I understood is that, on using require(./file-path) function, the node gets the conte...
(2) odpowiedzi
2017-08-01 13:08 Cannot debug serverless application in Visual Studio Code »
I have tried to debug serverless application developed using serverless framework in VS code. I have followed this article. But when I trying to deb...
(1) odpowiedzi
2017-08-01 00:08 Duplicate Identifier Error Popper.js »
I have been unable to fix this error or determine the cause. No code has changed, so I assume it is a result of an NPM package being updated. Here i...
(0) odpowiedzi
2017-07-31 23:07 Read params from a json file for protractor tests »
I've commented out the lines trying to read the files, is there a way I can retrieve the values from the files inside protractor.config.ts instead of ...
(1) odpowiedzi
2017-07-31 21:07 Is there a way to send data from HTML (using ejs template engine) to Node.js? »
I am currently working on my self-project using Node.Js (Express) + MongoDB + Javascript/Jquery + HTML (using EJS as my template engine). Currently I...
(1) odpowiedzi
2017-07-31 06:07 zero byte file is created in s3 while trying to resize and upload using multer in nodejs? »
Below is my app.js file.. Whenever i make an attempt to resize and upload my image using multer-imager module a zero byte file is getting created ever...
(1) odpowiedzi
2017-07-31 00:07 How much does include statements hinder performance? »
I am currently writing a node server, using express and ejs for the tempting engine. Some of my .ejs files have 7 - 8 include statements for partials ...
(2) odpowiedzi
2017-07-30 21:07 Clustering of facebook-users with k-means »
i got a facebook-list of user-ids from following page: Stanford Facebook-Data If you look at the facebook_combined data, you can see that it is a li...
(1) odpowiedzi
2017-07-30 17:07 Passing values from one promise to the next »
A bit new to javascript. Been dealing with promises, however ran into a problem i dont know how to approach. How can i pass a value into the next pro...
(3) odpowiedzi