piei

1.0.0 • Public • Published

piei.js

just 4fun web framework

usage example

const app = require('piei')
const PORT = 3000

app.route({
  method: 'GET',
  url: '/home',
  handler: (req, res) => res.end('home2')
})

app.route({
  method: 'POST',
  url: '/home',
  handler: (req, res) => {
    console.log('body', req.body)
    res.end('ok')
  }
})

app.listen(PORT, 'localhost', () => {
  console.log(`up ${PORT}`)
})

Dependents (0)

Package Sidebar

Install

npm i piei

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

4.01 kB

Total Files

8

Last publish

Collaborators

  • marcosflorencio