Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 16 lines (11 sloc) 0.5 kb
59f5fa8 Sam Stephenson Logo
sstephenson authored
1 <img src="https://github.com/downloads/sstephenson/stitch/logo.jpg"
2 width=432 height=329>
ea9a37f Sam Stephenson Initial commit
sstephenson authored
3
4 Develop and test your JavaScript applications as CommonJS modules in
5 Node.js. Then __Stitch__ them together to run in the browser.
8d00487 Sam Stephenson Add an Express example
sstephenson authored
6
7 var stitch = require('stitch');
8 var express = require('express');
9
10 var package = stitch.createPackage({
11 paths: [__dirname + '/lib', __dirname + '/vendor']
12 });
13
14 var app = express.createServer();
15 app.get('/application.js', package.createServer());
Something went wrong with that request. Please try again.