1.0.0 • Published 11 years ago

terraform-connect v1.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
11 years ago

terraform-connect

use the terraform asset pipeline as connect middleware

Extracted with some minor modifications from the harp server middleware.

Build Status Dependencies

NPM

Usage

var express      = require('express'),
    TerraConnect = require('terraform-connect');

var app = express();
app.use(express.static(path.join(__dirname, 'public')));
app.use(TerraConnect.pipeline(path.join(__dirname, 'public'), { root: './public' }));

The options object is there to future-proof the pipeline() call in case it ever needs more than just the asset directory path.

License

MIT.