npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

gulp-bower-exports

v0.0.7

Published

Gulp plugin to export files from the bower components to a usable area (for e.g. wwwroot) based on some rules similar to grunt-bower-task

Readme

gulp-bower-exports

A JSON driven rule based file transfer plugin for Gulp. For detailed information and usage, please visit gulp-bower-exports

When working with web applications, bower is often a preferred choice to maintain client-side dependencies. While bower maintains the dependencies effectively, you do not often need the complete distribution files in your web project. The few required files from each distribution package need to be transferred either manually or by writing tedious scripts to do the task.

Grunt has a plugin to do this - grunt-bower-task. It transfers the key files from bower distributions to the target directory based on the specified configuration.

Gulp has a similar plugin - main-bower-files. This will read your bower.json, iterate through your dependencies and returns an array of files defined in the main property of the packages bower.json.

This plugin gulp-bower-exports, however provides a different approach to transfer the required files from your bower distributions to the target. The plugin is developed using TypeScript on Visual Studio 2015 and as such is easy to understand if you have worked with TypeScript earlier.

Primary features

  1. Simple JSON structure to describe the export tasks
  2. Define simple rules that can be referenced in the export tasks
    • Source selection rule - Select source files using node glob patterns
    • Filter rule - Filter out from the selected sources
    • Rename rule - Rename parts of the file name (same as gulp-rename)
    • Replace Content rule - Replace file contents with regex search/replace
    • Move - Specify target locations to move the files
  3. Export tasks composed using the inline or defined rules
  4. JSON schema to help in editing the export configuration file

Install

$ npm install --save-dev gulp-bower-exports

Usage

var gulp = require('gulp');
var bowerExports = require('gulp-bower-exports');

gulp.task('default', function () {
    return gulp.src('bower.json')
		.pipe(bowerExports({ exportsJsonFilePath: 'bower-exports.json' }))
		.pipe(gulp.dest('wwwroot'));
});

API

bowerExports(options)

options.exportsJsonFilePath

Type: string
Required: false
Default: null
Description: External json file containing the exports section. If not specified, the exports section is expected to be present in the bower.json file with the property name "bowerExports"

options.logLevel

Type: number | string
Required: false
Default: 2 | 'Warning'
Description: Minimum log level to emit during the build process (0 => Debug, 1 => Information, 2 => Warning, 3 => Success, 4 => Error)

License

MIT © DotCastle TechnoSolutions Private Limited, INDIA