ellie

0.2.1 • Public • Published

ellie

Usage

Simple installation

> echo {} > package.json
> npm install --save ellie eliot
> touch index.js

Simple API

// index.js
 
import { pipe, serve } from 'ellie'
 
const HelloWorld = () => (request) => {
  return (
    <h1>Hello world, from {request.url}!</h1>
  )
}
 
const pipeline = pipe(HelloWorld)
 
serve(pipeline)
  .listen(8080)
  .then(() => console.log('Listening to port 8080'))

Run instantly

> eliot index.js --jsx
Listening to port 8080

Readme

Keywords

none

Package Sidebar

Install

npm i ellie

Weekly Downloads

3

Version

0.2.1

License

WTFPL

Last publish

Collaborators

  • emilniklas