1.0.6 • Published 2 years ago

lunova v1.0.6

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

Lunova

 / \__
(    @\___
 /         O
/   (_____/
/_____/   U

A non-opininated, lightweight web application framework for nodejs. Written with tender love and care by indie hackers.

Example usage

const Lunova = require('lunova').default;

console.log(Lunova);
const lunova = new Lunova();

lunova.get("/", async (req, res) => {
    res.writeHead(200, { 'Content-Type': 'text/plain' });
    res.end('Your Response Here');
})

lunova.get("/hello", async (req, res) => {
    res.writeHead(200, { 'Content-Type': 'text/plain' });
    res.end('Hello World!');
})

lunova.post("/", async (req, res) => {
    res.writeHead(200, { 'Content-Type': 'text/plain' });
    res.end('{id: 1, name: "John Smith"}');
})

lunova.listen(3000, () => {
    console.log("Listening on port 3000")
})
1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago