Update: Actually realizing now that the request was actually not for nodes, rather generic npm modules. Then this PR will not be very helpful as it does not allow to add new dependencies, only credentials/nodes that do not have any additional dependencies.
But still very useful; if nodes can be loaded at runtime - this will significantly help reduce install size. Could just display a node list and download the nodes that users want as needed. Like an node store/marketplace!