Hacker News new | ask | show | jobs
by edwinvdgraaf 4369 days 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?
3 comments

Bower 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.

I have generally only seen bower used for client side web. Its very useful when you are running a frontend framework like Angular or ember.
bower manages your script tags in the html file. It also supports partial inclusion of libraries.
> bower manages your script tags in the html file

no, it doesn't. bower has nothing to do with module loading.

you are technically right. It's the grunt bowerInstall.
FTFY:you are right