# stitch

> Stitch your CommonJS modules together for the browser

Latest version **0.3.3** (published 2011-12-30) · 0 weekly downloads

## Install

```sh
npm install stitch
pnpm add stitch
yarn add stitch
bun add stitch
```

## Health

**Score 10/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; low quality score; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.3.3 |
| Published | 2011-12-30 |
| First published | 2010-12-27 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | * |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1039 |
| Maintainers | sstephenson |

## Links

- npm: https://www.npmjs.com/package/stitch
- Repository: https://github.com/sstephenson/stitch
- npm.io page: https://npm.io/package/stitch

## Dependencies (2)

- [async](https://npm.io/package/async.md) >=0.1.15
- [underscore](https://npm.io/package/underscore.md) >=1.1.3

## Recent versions

- 0.3.3 (latest) — 2011-12-30
- 0.3.2 — 2011-06-04
- 0.3.1 — 2011-03-23
- 0.3.0 — 2011-03-23
- 0.2.1 — 2011-02-20
- 0.2.0 — 2011-02-20
- 0.1.0 — 2010-12-27

## README

<img src="https://github.com/downloads/sstephenson/stitch/logo.jpg"
width=432 height=329>

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](http://expressjs.com/):

    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());
    app.listen(3000);

Or build it to a file:

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

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

    package.compile(function (err, source){
      fs.writeFile('package.js', source, function (err) {
        if (err) throw err;
        console.log('Compiled package.js');
      })
    })

---
_Source: https://npm.io/package/stitch · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
