Skip to content

ThatUdeshUK/hukx

Repository files navigation

hukx

License npm

Piper for Node.js express apps.

Installation

npm i hukx --save

Usage

Javascript

// Import express and instanciate router
const express = require('express')
const router = express.Router()

// Import hukx and create a instance
const { hukx, piperOf } = require('hukx')
const piper = piperOf(router)

// Define a route with a pipe
piper.get('/', hukx.pipe(
  ... // Rxjs operators
))

// Export router
module.exports = router

Author

Udesh Kumarasinghe - UdeshUK on GitHub, ThatUdeshUK on Twitter

License

Apache 2.0. See the LICENSE file for details.