bower/bower


A package manager for the web

bower.io

License: MIT

Language: JavaScript

Keywords: bower, front-end, javascript, package-manager


Bower - A package manager for the web

Backers on Open Collective Sponsors on Open Collective

..psst! While Bower is maintained, we recommend yarn and webpack for new front-end projects!

Unix CI Windows CI Coverage Status Discord chat


Bower offers a generic, unopinionated solution to the problem of front-end package management, while exposing the package dependency model via an API that can be consumed by a more opinionated build stack. There are no system wide dependencies, no dependencies are shared between different apps, and the dependency tree is flat.

Bower runs over Git, and is package-agnostic. A packaged component can be made up of any type of asset, and use any type of transport (e.g., AMD, CommonJS, etc.).

View complete docs on bower.io

View all packages available through Bower's registry.

Install

$ npm install -g bower

Bower depends on Node.js and npm. Also make sure that git is installed as some bower packages require it to be fetched and installed.

Usage

See complete command line reference at bower.io/docs/api/

Installing packages and dependencies

# install dependencies listed in bower.json
$ bower install

# install a package and add it to bower.json
$ bower install <package> --save

# install specific version of a package and add it to bower.json
$ bower install <package>#<version> --save

Using packages

We discourage using bower components statically for performance and security reasons (if component has an upload.php file that is not ignored, that can be easily exploited to do malicious stuff).

The best approach is to process components installed by bower with build tool (like Grunt or gulp), and serve them concatenated or using a module loader (like RequireJS).

Uninstalling packages

To uninstall a locally installed package:

$ bower uninstall <package-name>

prezto and oh-my-zsh users

On prezto or oh-my-zsh, do not forget to alias bower='noglob bower' or bower install jquery\#1.9.1

Never run Bower with sudo

Bower is a user command; there is no need to execute it with superuser permissions.

Windows users

To use Bower on Windows, you must install Git for Windows correctly. Be sure to check the options shown below:

Git for Windows

Git for Windows

Note that if you use TortoiseGit and if Bower keeps asking for your SSH password, you should add the following environment variable: GIT_SSH - C:\Program Files\TortoiseGit\bin\TortoisePlink.exe. Adjust the TortoisePlink path if needed.

Ubuntu users

To use Bower on Ubuntu, you might need to link nodejs executable to node:

sudo ln -s /usr/bin/nodejs /usr/bin/node

Configuration

Bower can be configured using JSON in a .bowerrc file. Read over available options at bower.io/docs/config.

Support

Contributing

We welcome contributions of all kinds from anyone. Please take a moment to review the guidelines for contributing.

Note that on Windows for tests to pass you need to configure Git before cloning:

git config --global core.autocrlf input

Backers

Support us with a monthly donation and help us continue our activities. [Become a backer]

Sponsors

Become a sponsor and get your logo on our README on Github with a link to your site. [Become a sponsor]

License

Copyright (c) 2012-present Twitter and other contributors

Licensed under the MIT License

Project Statistics

Sourcerank 22
Repository Size 4.07 MB
Stars 15,306
Forks 2,016
Watchers 814
Open issues 205
Dependencies 877
Contributors 231
Tags 107
Created
Last updated
Last pushed

Top Contributors See all

André Cruz Adam Stankiewicz Sindre Sorhus Mat Scales Sven Lito fat Nicolas Gallagher Joshua Peek David DeSandro Paul Irish Marco Oliveira Ben Schwarz Ahmad Nassri Ben Ray Shan Karthik Kastury Michael Uzquiano Chris Contolini Nathan Bleigh Rob Simpson

Packages Referencing this Repo

bower
The browser package manager
Latest release 1.8.4 - Updated - 15.3K stars
parser-lib
A package manager for the web
Latest release v1.8.2 - Published - 15.3K stars
hui
A package manager for the web
Latest release v1.8.2 - Published - 15.3K stars
test-handlebars
A package manager for the web
Latest release v1.8.2 - Published - 15.3K stars
bootstrap-languages
A package manager for the web
Latest release v1.8.2 - Published - 15.3K stars
naver-bower
The browser package manager
Latest release 0.0.8 - Updated - 15.3K stars
bower-art
The browser package manager
Latest release 1.0.5-beta - Updated - 15.3K stars
venk
A package manager for the web
Latest release v1.8.2 - Published - 15.3K stars
bower-prerelease
The browser package manager
Latest release 1.7.8 - Updated - 15.3K stars
bower-staging
The browser package manager
Latest release 1.8.2 - Published - 15.3K stars
@cobalt-engine/cobower
The browser package manager
Latest release 2.0.0 - Published - 15.3K stars
bower-canary
The browser package manager.
Latest release 1.3.0 - Updated - 15.3K stars
mayhem
A package manager for the web
Latest release v1.8.2 - Published - 15.3K stars
bower-config
The Bower config reader and writer.
Latest release 1.4.1 - Updated - 15.3K stars
aDPickers
A package manager for the web
Latest release v1.8.2 - Published - 15.3K stars

Recent Tags See all

v1.8.4 March 28, 2018
v1.8.3 March 28, 2018
v1.8.2 March 28, 2018
1.8.2 September 13, 2017
v1.8.0 November 07, 2016
v1.7.9 April 05, 2016
v1.7.8 April 04, 2016
v1.7.7 January 27, 2016
v1.7.6 January 27, 2016
v1.7.5 January 25, 2016
v1.7.3 January 20, 2016
v1.7.2 December 31, 2015
v1.7.1 December 11, 2015
v1.7.0 December 07, 2015
v1.6.9 December 04, 2015

Interesting Forks See all

paulirish/bower
A package manager for the web, created at Twitter
JavaScript - MIT - Last pushed - 3 stars - 1 forks
h2non/bower-auth
Bower package manager (with authrc support)
JavaScript - MIT - Last pushed - 3 stars
Acidburn0zzz/bower
A package manager for the web
JavaScript - Updated - 2 stars - 1 forks
mvlcek/cns-bower
A package manager for the web + maven resolver
JavaScript - MIT - Last pushed - 2 stars
bdacode/bower
A package manager for the web, created at Twitter
JavaScript - MIT - Updated - 1 stars

Something wrong with this page? Make a suggestion

Last synced: 2018-03-28 20:45:35 UTC

Login to resync this repository