Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ceejbot/terraform-connect

use the terraform asset pipeline as connect middleware
https://github.com/ceejbot/terraform-connect

Last synced: about 6 hours ago
JSON representation

use the terraform asset pipeline as connect middleware

Awesome Lists containing this project

README

        

terraform-connect
=================

use the [terraform](https://github.com/sintaxi/terraform) asset pipeline as connect middleware

Extracted with some minor modifications from the [harp server](https://github.com/sintaxi/harp) middleware.

[![Build Status](https://secure.travis-ci.org/lyveminds/terraform-connect.png)](http://travis-ci.org/lyveminds/terraform-connect)
[![Dependencies](https://david-dm.org/lyveminds/terraform-connect.png)](https://david-dm.org/lyveminds/terraform-connect)

[![NPM](https://nodei.co/npm/terraform-connect.png)](https://nodei.co/npm/terraform-connect/)

## Usage

```javascript

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.