earl-express

Earl Grey macros for express

Usage no npm install needed!

<script type="module">
  import earlExpress from 'https://cdn.skypack.dev/earl-express';
</script>

README

earl-express

Provides the application macro, which is used as follows:

require-macros:
   earl-express -> application
require:
   cookie-parser

application my-app:
   use: cookie-parser
   get "/hello":
      @res.send{"Hello!"}
   post "/something":
      ...

port = 3000
print 'Listening on port {port}!'
my-app.listen{port, .localhost}