# plumber-bower

> Operation to source files from Bower components for Plumber pipelines

Latest version **0.4.3** (published 2014-07-04) · GPL license · 0 weekly downloads

## Install

```sh
npm install plumber-bower
pnpm add plumber-bower
yarn add plumber-bower
bun add plumber-bower
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.4.3 |
| Published | 2014-07-04 |
| First published | 2014-01-02 |
| Weekly downloads | 0 |
| License | GPL |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Known vulnerabilities | 0 (+2 in 2 direct dependencies) |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Sébastien Cevey |
| Maintainers | theefer |
| Keywords | build, assets, pipeline, plumber |

## Links

- npm: https://www.npmjs.com/package/plumber-bower
- Repository: https://github.com/plumberjs/plumber-bower
- Issues: https://github.com/plumberjs/plumber-bower/issues
- npm.io page: https://npm.io/package/plumber-bower

## Dependencies (4)

- [bower](https://npm.io/package/bower.md) ~1.2.8
- [extend](https://npm.io/package/extend.md) ~1.2.1
- [flatten](https://npm.io/package/flatten.md) 0.0.1
- [highland](https://npm.io/package/highland.md) ~1.16.2

## Alternatives

- [raw-loader](https://npm.io/package/raw-loader.md) — 4.3M weekly downloads
- [plop](https://npm.io/package/plop.md) — 1.4M weekly downloads
- [webpack-deadcode-plugin](https://npm.io/package/webpack-deadcode-plugin.md) — 80.3K weekly downloads
- [@storybook/preact-vite](https://npm.io/package/@storybook/preact-vite.md) — 54.2K weekly downloads
- [vite-plugin-transform](https://npm.io/package/vite-plugin-transform.md) — 2.4K weekly downloads

## Recent versions

- 0.4.3 (latest) — 2014-07-04
- 0.4.2 — 2014-07-04
- 0.4.1 — 2014-07-03
- 0.4.0 — 2014-07-03
- 0.3.0 — 2014-03-05
- 0.2.1 — 2014-02-16
- 0.2.0 — 2014-02-04
- 0.1.3 — 2014-01-14
- 0.1.2 — 2014-01-12
- 0.1.1 — 2014-01-02
- 0.1.0 — 2014-01-02

## README

plumber-bower [![Build Status](https://travis-ci.org/plumberjs/plumber-bower.png?branch=master)](https://travis-ci.org/plumberjs/plumber-bower)
=============

Bower sourcing operation for [Plumber](https://github.com/plumberjs/plumber) pipelines.

## Example

    var bower = require('plumber-bower');

    module.exports = function(pipelines) {

        pipelines['compile'] = [
            all(
                bower('jquery'),
                bower('moment', 'min/moment.min.js')
            ),
            // ... more pipeline operations
        ];

    };


## API

### `bower(componentName, [paths])`

Returns resources from the locally installed [Bower](http://bower.io/)
component `componentName`.  If `paths` if provided, they will be
globbed from within the component's Bower directory; otherwise the
files register as main files in the component will be returned.

The `paths` array may include wildcards like `*` or `**` (globstar).

See the [minimatch](https://github.com/isaacs/minimatch) documentation for the full available syntax.

### `bower.from(directory)`

Returns a new `bower` function rooted in the given `directory`, where
the `bower.json` (and optionally `.bowerrc`) should be located.  By
default, the current working directory is used.

---
_Source: https://npm.io/package/plumber-bower · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
