npm.io
1.2.5 • Published 10 years agoCLI

handybower

Licence
MIT
Version
1.2.5
Deps
10
Vulns
0
Weekly
0
Stars
1

handybower

Build Status Code Climate Code Coverage npm Version

Install bower components and collect main files.

What's This?

Wrapper utility for bower install. bower is great, but when installing, it downloads entire repositories and you need to find files your own. Really annoying.

So here is handybower, which calls bower install and collect main files automatically.

Installation

npm install handybower --save

Usage

var handybower = require('handybower');

handybower([
    "jquery",
    "angular#1.4.3"
], {
    dest: "src/third_party" // Dirname to save files.
}, function (err) {
    // Will generate:
    // - src/third_party/jquery.js
    // - src/third_party/angular.js
});
Options
Key Description Default
dest Destination directory path. 'handybower_components'
verbose Log verbose false
main Name of main files. _detectFromBowerJson()

From CLI

Install as global module.

$ npm install handybower -g

Install via CLI.

$ handybower -d src/third_party jquery angular#1.4.3

License

This software is released under the MIT License.