11 ms·
What are reasons to use bower over NPM? I know that bower mainly focusses on front-end libraries (such as jQuery or Bootstrap). But does it offer functionality
by edwinvdgraaf 12y ago
What are reasons to use bower over NPM? I know that bower mainly focusses on front-end libraries (such as jQuery or Bootstrap). But does it offer functionality NPM doesn't have?
- hcho 12y agobower manages your script tags in the html file. It also supports partial inclusion of libraries.
- quarterto 12y ago> bower manages your script tags in the html file no, it doesn't. bower has nothing to do with module loading.
- hcho 12y agoyou are technically right. It's the grunt bowerInstall.
- abritishguy 12y agoFTFY:you are right
- dmak 12y agoI have generally only seen bower used for client side web. Its very useful when you are running a frontend framework like Angular or ember.
- Touche 12y agoBower installs dependencies in a flat folder structure, whereas NPM nests them. This makes it much easier to use Bower with a client-side module loader. Bower is also (easily) configurable where bower_components will be, whereas I don't think NPM is as easily.