Where communities thrive

  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
Repo info
  • Jun 02 06:16
    @ljharb banned @frank-dspeed
  • Apr 27 2018 01:23
    @MylesBorins banned @fjeddy
  • Feb 24 2016 08:26
    @rvagg banned @jonathanenbe
David Yashgur
anyone know where i can go for some guidance?
Charles J Perry
Hello all, I have a question regarding zip files. Can anyone tell me how I can take a zip file and extract all the contents into a directory on my local computer? Thanks
Anuj Tewari
@here what is the recommeded way to do something like tcpdump for a node app?
ishu mishra
Hi Folks,
i am trying to solve binary search problem so i got this code
function binarySearch(array,target,start,end){
     // If the target is less then the very last item then insert it at that item index
     // because anything index less then that has already been confirmed to be less then the target.
     // Otherwise insert it at that item index + 1
     // because any index grater then that has already been confirmed to be greater then the target
    if(start>end) return start;
    const midPoint=Math.floor((start+end)/2);
if(array[midPoint]==target) return midPoint;  
// search the left side
if(array[midPoint]>target) return binarySearch(array,target,start,midPoint-1);

// search the right side

if(array[midPoint]<target) return binarySearch(array,target,midPoint+1,end);
but i am not getting why its taken if(start>end) return start ??
Steins Gate
Hi Node Community, I am having an issue where I tried to add a member as a collaborator to an npm package and the CLI shows that it successfully added the person. But when I type npm owner ls <package_name> I do not see that member as an owner
I have one question, can i use Object.assign() to update field in database?
Why can't the parent process receive messages from the child process?
console.log(parent process) shows that the message event processing function exists:
_events: [Object: null prototype] {
newListener: [Function: startListeningIfSignal],
removeListener: [Function: stopListeningIfSignal],
warning: [Function: onWarning],
SIGWINCH: [ [Function], [Function] ],
exit: [Function],
message: [Function],
SIGINT: [Function]
Francisco Robles Martín
Hello! Do you know what type of repository is the one where NodeJS are stored? https://nodejs.org/dist/
anyone here who has worked with firebase admin to verifyToken at node js
mobile authentication is implemented at app side i just want to verify at node js and provide access to routes
Jordan Harband
@froblesmartin no type, it's just a folder full of files
hi guys :wave:
im kinda stuck on a file download over my API
can someone explain this?

i have csv2json

where i do

        const csv = json2csv(
          filtered, {


and in my front-end i do

  dataToCsv(res: any): void {
    const newWindow = window.open();
    const blob = new Blob([res], { type: 'text/csv' });
    const url = window.URL.createObjectURL(blob);
    newWindow.location.href = url;

this works :)
how do i download an excel?
Im trying the same method for https://www.npmjs.com/package/json2xls
but its not returning the correct type i guess
do i need to create a blob?
or how do you download files over api? i cant just do res.download
Mayank Aggarwal

Hey guys,

Created a clone of stackoverflow on a MERN stack and recently I have documented it as well.
Will appreciate if you could take a look at it


Open to any kind of suggestions

Parallel-File-Sharing, github link https://github.com/gautam1858/Parallel-File-Sharing, please star if you find it interesting
Jordan Harband
you don't want import * as that's typescript's broken module system (unless you enable esModuleInterop and synthetic imports)
Keith Kelly
Can anyone explain why most of this function never gets executed? https://repl.it/repls/FrightenedPastLogin#index.js
at Module._compile (internal/modules/cjs/loader.js:1144:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1164:10)
at Module.load (internal/modules/cjs/loader.js:993:32)
at Function.Module._load (internal/modules/cjs/loader.js:892:14) {
requireStack: [
do i need to do npm install to put my export to node modules
when is it required to do npm install, every time i add a new export or do any change in my exported file i need to npm install?
and i need to delete node modules and npm install?
Adisa Collis


There is a team at my company that wants to use an angular app on one domain to generate html (a list of search results with ul/li tags) and use a second domain to pull the search list into the 1st domains html. Is there a way to do this securely?

Hi everyone!
Can anyone help me? Is there any way I can debug a TypeScript/Electron app in Visual Studio Code?
Every launch.json file I find is either broken, outdated or incompatible
Salathiel Genèse
@Githubber2021 - Maybe you should stop trying, read the docs and seek understanding !?
The snippets are broken as well
I downloaded the original example from the electron repo, and used even their launch.json from their tutorial. no success
Salathiel Genèse
Hmmmmm, weird
Salathiel Genèse
Consider reporting it on their GitHub repository...
If they got a reactive team (like node), they'll look into it very soon (like few hours from now)
can anyone tell me regex to check number greater than equal to 6
Jordan Harband
why would you use regex for that
i want to put check in json
Jordan Harband
json doesn’t support regexes