terraform-connect

1.0.0 • Public • Published

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.

/terraform-connect/

    Package Sidebar

    Install

    npm i terraform-connect

    Weekly Downloads

    0

    Version

    1.0.0

    License

    MIT

    Last publish

    Collaborators

    • ceejbot