Skip to content
kevin edited this page Dec 6, 2020 · 7 revisions

Manager.js

Managerjs logo

Forks Stars Watchers

A javascript library to manage Localstorage,Date,Cookies,Ajax/JQuery Ajax,Object Manager, it includes some of the amazing javasript apis i thought are usefull,

one of the main usefull apis is localstorage

   new Manager.lsm("name")

the 2nd one is DateTime manager

   var TimeManager = new Manager.TM(); // simplifying TimeManager
   console.log(TimeManager.time.fullyear);

The other one is the javascript manager though i didn't mention it before,

   Manager.require("/path/to/script.js",{ // included/imported
      as: "name",
      extends: true,
   });
   function hello(){ 
      alert("Hello World!");
   }
   Manager.extends(hello,"hello"); // Manager.extends(function,"functionName");

   Manager.define("sayHello",["hello","LSM"],function(helloText){
     Manager.hello(); // we extended this before
     console.log(helloText);
   },{ //Required stuff
     caseIns: false, // case Insensitive
   });

   Manager.exec('sayHello',"hii"); // function then arguments
   

Docs Or Demo

Clone this wiki locally