2

knuckjs

Knuckjs is a simple JavaScript framework for creating lightning fast SPAs...

👋 KnuckJS

Version Documentation Maintenance License: MIT Twitter: elcharitas

KnuckJS is a Simple and lightweight JavaScript Framework to build lightning fast CSRs using any template engine Learn more

Install

Installing knuckjs is effortless as you can choose to install it as a dependency using npm or yarn

npm i knuckjs
---- or ----
yarn add knuckjs

or directly include using a CDN like jsDelivr

<script src="https://cdn.jsdelivr.net/npm/knuckjs@0.1.1/dist/knuck.min.js"></script>

Sample Usage

Here is a sample Hello Knuck app. Full documentation is available here.

// Hello Knuck in Typescript
import Knuck from "knuckjs";

let app: Knuck = new Knuck(function create(Route){
    // tell knuck where to look
    this.realpath = location.pathname;

    // listen for a path
    Route.get('/', function(){
        return "Hello Knuck";
    });

    // let's knuck this app out
    this.run();
});

Author

Jonathan Irhodia

Contributing

Contributions, issues and feature requests are welcome!
Feel free to check issues page. You can also take a look at the contributing guide.

Show your support

Give a ⭐️ if this project helped you!

License

Copyright © 2020 Jonathan Irhodia.
This project is MIT licensed.

Designed and developed by  Jonathan Irhodia  © 2024