arfost-ntools
A set of node js tools intended for me to import in each projects If it can be of any use for you, fell free to use it.
npm install --save arfost-ntools
What is in here ?
random function
var random = random //for a result between 4 included and 10 included //for a result between 1 included and 6 included
param checker classes
var ParamChecker = ParamChecker var ChildClass = //list of needed params { return "param1" "param2" "param3" } //class name for errors and other dev related messages { return "ChildClass" } //this will work param1:"param" param2:false param3:0 //this will throw a typeError param1:"param" param2:false //another is present with the same logic, but you can send a path to a json parameter files as well as a literal objectvar ParamsFromFileOrObject = ParamsFromFileOrObject