Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/ceejbot/terraform-connect
- Owner: ceejbot
- License: mit
- Fork: true (lyveminds/terraform-connect)
- Created: 2014-06-30T03:54:47.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2014-08-01T01:17:15.000Z (about 10 years ago)
- Last Synced: 2024-09-18T04:30:33.152Z (9 days ago)
- Language: JavaScript
- Size: 134 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.