node package manager
Painless code sharing. npm Orgs help your team discover, share, and reuse code. Create a free org ยป



Wire dependencies to your source code.

Getting Started

Install the module with: npm install wiredep --save

var wiredep = require('wiredep')({
  directory: 'the directory of your Bower packages.',
  bowerJson: 'your bower.json file contents.',
  ignorePath: 'optional path to ignore from the injected filepath.',
  htmlFile: 'the path to the HTML file to take control of.',
  jsPattern: 'default: <script src="{{filePath}}"></script>',
  cssPattern: 'default: <link rel="stylesheet" href="{{filePath}}" />'


In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using Grunt.


Copyright (c) 2013 Stephen Sawchuk. Licensed under the MIT license.