0.2.1 • Published 1 year ago
jfacile v0.2.1
Code in JS is easy with JFacile !
Beginn with JFacile :
JS :
const JFacile = require("jfacile");
Example of code :
const JFacile = require("jfacile");
// Optional
JFacile.JUnhandledRejection;
JFacile.Exit;
JFacile.JUnCaughtException;
JFacile.JRejectionHandled;
//Utils
JFacile.JColorRandom();
console.log(JFacile.JColor());
//Maths
JFacile.sum(5, 2);
JFacile.add(5, 2);
JFacile.multi(5, 2);
JFacile.divi(5, 2);
JFacile.mathPow(5, 2);
JFacile.mathRandom();
// ExpressJS server
JFacile.routeGet("/nameOfRoute", "Title Of The Page", "Render of the page");
JFacile.routePost("/nameOfRoute", "Title Of The Page", "Render of the page");
JFacile.routePut("/nameOfRoute", "Title Of The Page", "Render of the page");
JFacile.routeDelete("/nameOfRoute", "Title Of The Page", "Render of the page");
JFacile.run(3000);
Create a anti crash process with require("jfacile") !
Links :
Npm : https://www.npmjs.com/package/jfacile GitHub : https://github.com/JFacile/JFacile