npm.io
0.1.0 • Published 5 years ago

knuckjs

Licence
MIT
Version
0.1.0
Deps
1
Size
142 kB
Vulns
0
Weekly
0
Stars
2

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.0/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.