Have ideas to improve npm?Join in the discussion! »

    kado

    4.3.0 • Public • Published

    Kado

    pipeline status Build Status npm version

    npm install kado
    

    High Quality JavaScript Framework Libraries for Node.JS

    Quick Hello Server

    Place the following code into an empty JavaScript file, example: app.js.

    'use strict'
    // import kado
    const kado = require('kado')
    // create application
    const app = kado.getInstance()
    // create a webserver
    const http = new kado.HyperText.HyperTextServer()
    // register the webserver
    app.http.addEngine('http', http.createServer(app.router))
    // register a route
    app.get('/', (req, res) => { res.end('Hello') })
    // start the application and listen
    app.start().then(() => app.listen())

    After saving the file, execute the code by running the following command from the same folder as the JavaScript file.

    node app
    

    Once the command has executed, a web server that says "Hello" will be available on port 3000 of your local machine, example: http://localhost:3000.

    See kado.org to go further.

    Features

    • Single Node.JS Module
    • Compatible with Node.JS 10 and above.
    • Contains 47 libraries that cover a majority of coding tasks.
    • Use libraries as needed and keep the code light.
    • Consistent stable code that rarely changes.
    • Complete reference documentation.
    • Easy to learn, familiar, inspired by popular modules.
    • Ready for continuous integration.

    Questions or Problems?

    Please see our bug tracker

    Change Log

    Please see the CHANGELOG

    Contributing

    Please see the Contribution Guidelines

    License

    Kado Copyright (C) 2013-2020 Bryan Tong, NULLIVEX LLC. All rights reserved. Kado is licensed under the Lesser GNU Public License version 3.0 or newer see LICENSE for a complete copy of applicable license

    Install

    npm i kado

    DownloadsWeekly Downloads

    68

    Version

    4.3.0

    License

    LGPL-3.0

    Unpacked Size

    906 kB

    Total Files

    215

    Homepage

    kado.org

    Last publish

    Collaborators

    • avatar