This package has been deprecated

Author message:

this package has been deprecated

rx-micro

0.1.0 • Public • Published

rx-micro — Reactive HTTP microservices

Built on-top of micro with RxJS6 instead of async/await.

Install

npm i rx-micro

Usage

Create an index.js file and export a function which accepts the standard http.IncomingMessage and http.ServerResponse parameters as well as an Rx Observable:

module.exports = (req, res, request$) => {
  return request$.pipe(mapTo('Hello world!'))
}

Like micro, rx-micro handles return values:

module.exports = () => 'Hello world!'

Command Line

npx rx-micro

Readme

Keywords

none

Package Sidebar

Install

npm i rx-micro

Weekly Downloads

2

Version

0.1.0

License

MIT

Unpacked Size

9.03 kB

Total Files

5

Last publish

Collaborators

  • johnnynotsolucky