Then use another library. Is that a fault of npm or node that people developing some libs don't know what they're doing? The point here is that ecosystem allows your package to be one 'npm install' away from the user. The fact that you choose to tangle yourself up from complexity is no one's fault but yours.
(for the record to me 900MB seems like a grossly overestimated number, I would request a link on that)