Skip to content

Tag: node.js

Create big json object js

I am using Nodejs to Create a JSON file from a really large JSON object (1GB). In order to avoid memory problems, I’m using createWriteStream : After using Builder(custom function ) it will return a big object JSON. the final step is to create this file : but unfortunately, JSON.stringify cannot be used…

Push object to array in mongodb nodejs [closed]

Closed. This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 2 years ago. Improve this question This is my mongodb collection. I want to push object to array with findOneAndUpdate(). This …

readline not pausing for or allowing input

Here is my code: (The console.log()s are just so I can see what code is evaluated and which isn’t) This just returns What do you want me to do?2 over and over again. It also doesn’t let me type anything in to the console. How can I fix this? I’ve looked all over and haven’t found anyth…