1.6.0 ā€¢ Published 11 months ago

rjweb-server-ejs v1.6.0

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

Install

npm i rjweb-server-ejs

or

yarn add rjweb-server-ejs

or

pnpm add rjweb-server-ejs

Usage

Rendering a File & Setup

const { Server } = require('rjweb-server')
const { eJS } = require('rjweb-server-ejs')

const server = new Server({
  port: 8000
}, [
  eJS.config({})
])

server.path('/', (path) => path
  .http('GET', '/', (http) => http
    .onRequest((ctr) => {
      ctr.printEJS('./index.ejs')
    })
  )
)

server.start().then((res) => {
  console.log(`Server started on port ${res.port}`)
})

Author

šŸ‘¤ 0x4096

Show your support

Give a Star if this project helped you!

šŸ“ License

Copyright Ā© 2023 0x4096. This project is MIT licensed.

1.6.0

11 months ago

1.5.1

12 months ago

1.5.0

12 months ago

1.4.0

1 year ago

1.3.1

1 year ago

1.3.0

1 year ago

1.2.0

1 year ago

1.1.1

1 year ago

1.1.0

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago