0.0.4 • Published 7 years ago

tpipe-express v0.0.4

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

TPipe Express npm version license type npm downloads ECMAScript 6 & 5 js-standard-style

TPipe Express is a common express tpipe mapping set. So you can easily pipe your express handlers.

import piper from 'tpipe-express'
import expressPipeSet from 'tpipe-express-express'

 // piper returns an object with a pipe inside to be injected in express
const { pipe } = piper(
    input =>
      (
        {
          parameters: {
            view: 'index'
          },
          body: {
            ...input.body
          }
        }
      )
  )
.incorporate(expressPipeSet) //put the mappings around the handler and prepare methods for express (getHandler)

this.app.get('/myRoute', pipe.getHandler());

Quality and Compatibility

Build Status Coverage Status bitHound Score Dependency Status Dev Dependency Status

Every build and release is automatically tested on the following platforms:

node 5.x node 6.x

Installation

Copy and paste the following command into your terminal to install TPipe Express:

npm install tpipe-express --save

How to Contribute

You can submit your ideas through our issues system, or make the modifications yourself and submit them to us in the form of a GitHub pull request.

Running Tests

It's easy to run the test suite locally, and highly recommended if you're using tpipe-express on a platform we aren't automatically testing for.

npm test
0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago