Skip to content


Subversion checkout URL

You can clone with
Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

75 lines (42 sloc) 2.018 kB


Drop Bootstrap builds into your Node.js app. Just provide a git:// url and you're all set.


npm install bootware


By default bootware will git pull the master Bootstrap repo into /tmp/<unique tag>.

var express = require('express')
  , bootware = require('bootware')


This provides a newly built version of bootstrap at /bootstrap.

Reference a built version of Bootstrap like so:

<link href="/bootstrap/css/bootstrap.css" rel="stylesheet">

and the javascript:

<script src="/bootstrap/js/bootstrap.js"></script>

Local Development

If you are building your own fork or version of bootstrap you can point bootware at its local path.

var express = require('express')
  , bootware = require('bootware')

  .use(bootware({path: '~/Projects/my-bootstrap'}))

If a local path is provided bootware will use cp instead of git to pull in the built version of bootstrap. Setting the debug flag will rebuild boostrap every request.

bootware({path: '~/Projects/my-bootstrap', debug: true}) // should never be used in production

Best Practices


The intended use case for bootware is to fork bootstrap and modify it to suite your individual project needs. Then pull it into any given site by referencing the fork's git:// url.

bootware({path: 'git://'})

This means you will only ever have one version of your ui-kit (bootstrap) instead of building and migrating builds into various projects or managing git submodules.


Sometimes you may want to prevent an app from getting the latest version of bootstrap. In this case provide a tag or branch.

bootware({checkout: 'v2.0.1'}) // tag


bootware({checkout: 'my-branch'}) // branch
Jump to Line
Something went wrong with that request. Please try again.