Skip to content

Commit

Permalink
readme - fix code style on examples
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed May 1, 2013
1 parent b0350d9 commit 783869b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Expand Up @@ -240,12 +240,14 @@ var bower = require('bower');
bower.commands
.install(paths, options)
.on('end', function (data) {
data && console.log(data);
if (data) {
console.log(data);
}
});

bower.commands
.search('jquery', {})
.on('packages', function(packages) {
.on('packages', function (packages) {
// `packages` is a list of packages returned by searching for 'jquery'
});
```
Expand Down

0 comments on commit 783869b

Please sign in to comment.