Skip to content
This repository

Stitch your CommonJS modules together for the browser

tag: v0.2.0

Fetching latest commit…


Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 src
Octocat-spinner-32 test
Octocat-spinner-32 Cakefile
Octocat-spinner-32 LICENSE Initial commit September 17, 2010
Octocat-spinner-32 package.json

Develop and test your JavaScript applications as CommonJS modules in Node.js. Then Stitch them together to run in the browser.

npm install stitch

Bundle code in lib/ and vendor/ and serve it with Express:

var stitch  = require('stitch');
var express = require('express');

var package = stitch.createPackage({
  paths: [__dirname + '/lib', __dirname + '/vendor']

var app = express.createServer();
app.get('/application.js', package.createServer());
Something went wrong with that request. Please try again.