Packaging custom modules

I have two custom modules that I would like to eventually make available for others to use. Both of them rely on other npm packages, which means end user of the module would need to install node/npm in order to use them (i.e. npm install before they could use them) OR I would need to just commit the node_modules folder as well.

Is there a way that I could tap into the node/npm in electron to make it easier for end users to install? Or potentially there's an alternate solution I'm not aware of? Thanks!

Including the node_modules folders sounds fine actually (as long as there are no native module that require a platform-specific compilation process), I can't think of a better alternative.