If you're not impressed enough with npm as a backend JavaScript package manager, perhaps Bower will take you to the next level of joy. (Refer to http://bower.io/.) Bower works very similarly to npm. In fact, most commands and conventions that we've just discussed for npm work verbatim in Bower.
In fact, Bower itself is a Node.js module that is installed through npm:
npm install bower -g
We can interact with Bower the same way we've interacted with npm so far.
bower init // … using all proposed defaults // - - - - - - - // bower.json { name: 'npm', version: '0.0.0', homepage: 'https://github.com/formigone', authors: [ 'Rodrigo Silveira <[email protected]>' ], license: 'MIT', ignore: [ '**/.*', 'node_modules', 'bower_components', 'test', 'tests' ] }
Bower makes use of a bower.json
manifest file, which by now should look somewhat familiar to you. To install dependencies, either edit the manifest by...