cycle-http-server

0.1.0 • Public • Published

cycle-http-server

Cycle.js driver that wraps around node's http server.

Very simple example

import {run} from '@cycle/core';
import {makeServerDriver} from 'cycle-http-server';
 
function main({Server}) {
  Server.subscribe(function({req, res}) {
    res.end("Hello, world!");
  });
}
 
let drivers = {
  Server: makeServerDriver()
};
 
run(main, drivers);

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.0
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.0
    2

Package Sidebar

Install

npm i cycle-http-server

Weekly Downloads

2

Version

0.1.0

License

MIT

Last publish

Collaborators

  • tylors