npm rocks ! once the a deal manager. In particular, it protects sub-dependencies perfectly: in the event the my plan hinges on consult adaptation dos and lots of-other-collection , however some-other-library utilizes demand type step one, this new ensuing dependency graph works out:
This is certainly, basically, great: now some-other-collection has its own duplicate from demand v1 that it can fool around with, while not preventing my personal package’s v2 backup. Everybody’s password work!
The situation: Plugins
A plugin bundle is meant to be taken with various other « host » plan, although it does not constantly truly make use of the machine bundle. There are various types of that it development about Node.js plan environment already:
- Grunt plugins
- Chai plugins
- LevelUP plugins
- Share middleware
- Winston transfers
Even if you’re not familiar with any of those use cases, surely you recall « jQuery plugins » from back when you were a client-side developer: little