constsupplements=require('supplements');supplements.setupStringProto();consts='hello, how are you?';console.log(s.toCamelCase());console.log(s.toPascalCase());console.log(s.toKebabCase());console.log(supplements.randomString(5,{upperCaseChars: true,lowerCaseChars: true,}));
Number functions
constsupplements=require('supplements');supplements.setupNumberProto();constn=1234;// calling toBinary from prototypeconsole.log(n.toBinary());// calling toBinary from supplementsconsole.log(supplements.toBinary(1234));
other functions
constsupplements=require('supplements');asyncfunctionpromisedFun(){
...
awaitsupplements.delay(5000);// this line will wait for 5 sec
...
}// print lineNumber of current lineconsole.log(supplements.lineNumber());