Skip to main content

All Questions

Tagged with
1 vote
0 answers
89 views

How to design a plugin architecture in Node.js?

I have a Node.js application and I want users to be able to develop custom plugins. I have multiple ideas and I am unsure how good they are. I need some tips from more experienced developers. My first ...
MeineHTMLCodes's user avatar
1 vote
1 answer
1k views

What are the benefits of keeping npm packages up-to-date? [closed]

The company I work for is maintaining and developing a web application that uses many Node.js packages. A lot of these packages are really outdated. I can intuitively understand that it is good to ...
Akaisteph7's user avatar
2 votes
3 answers
134 views

Should a process be responsible for scheduling itself?

I need to create a very small service which will programmatically make a database insertion once a day. As our stack primarily uses Node.js, we’re going to write a JS script responsible just for ...
user3781737's user avatar
-2 votes
1 answer
109 views

How to warn devs after installing or updating npm packages? [closed]

I want to warn devs in my team to rebuild the docker containers after installing or updating npm packages. This is because whenever we edit packages in the environment the only way we've found to test ...
Meron's user avatar
  • 47
0 votes
1 answer
322 views

Change semver versioning after dropping node eninge versions

I doubt about to which semver version I should update my public NPM package. I didn't change any code, but I had to drop some node engine versions due to a dependency package which had a major update ...
Tarabass's user avatar
  • 111
2 votes
2 answers
250 views

What pattern lets each of multiple "voters" decide on a central status?

Imagine there's a boolean status variable that is either running or stopped. This variable is running by default and comes together with a deactivator function. When a client calls the deactivator ...
bebbi's user avatar
  • 361
0 votes
1 answer
2k views

Correct way to serve file that's in node_modules

Say I have this structure: project/ node_modules/ xxx/ asset.js index.html app.js and in app.js I have: const express = require('express'); const app = express(); ...
user avatar
15 votes
2 answers
2k views

Managing private NPM packages and CI/CD

At work, we have an application that is run directly on dev machines, but deployed in Docker swarms (a QA swarm and production swarm). The code and CI/CD pipelines are all in GitLab CE. It uses ...
Nick's user avatar
  • 731
3 votes
2 answers
3k views

What's a good way to deprecate your NPM modules?

One of my NPM modules is, frankly, pretty lame, hasn't been worked on in years, has no watchers, no stars, and only ~50 downloads per month. I'm going to abandon it, and eventually delete it so it ...
user949300's user avatar
  • 8,959
9 votes
2 answers
2k views

A good Node.js workflow for keeping packages up-to-date?

I've recently started developing a project in Node.js. Of course, right now the packages I'm using are pretty up-to-date as I'm starting afresh and using the latest version, but there's a pretty high ...
Jez's user avatar
  • 1,318