Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/alex0007/cycle-express-driver

Express.js driver for Cycle.js
https://github.com/alex0007/cycle-express-driver

cycle-driver cyclejs expressjs

Last synced: about 1 month ago
JSON representation

Express.js driver for Cycle.js

Awesome Lists containing this project

README

        

# cycle-express-driver [![npm version](https://badge.fury.io/js/cycle-express-driver.svg)](https://badge.fury.io/js/cycle-express-driver) [![dependencies Status](https://david-dm.org/Alex0007/cycle-express-driver/status.svg)](https://david-dm.org/Alex0007/cycle-express-driver)
[Express.js](http://expressjs.com/) driver for [cycle.js](http://cycle.js.org/) forked from [here](https://github.com/whitecolor/cycle-express)

## Stream of requests
```js
router.get('/').map(({id}) => {
return {id, send: 'Hello, world'}
})
```

## Nested
```js
const nested = router.route('/api')
nested.post('/users').map((req) => {})
```

## Example
Check out the minimal working sample at [Alex0007/cycle-express-hello-world](https://github.com/Alex0007/cycle-express-hello-world)