readme - fix code style on examples

This commit is contained in:
Sindre Sorhus
2013-05-01 15:20:47 +02:00
parent b0350d9412
commit 783869b45c

View File

@@ -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'
});
```