npm install --save common-lib
var CommonLib = require('common-lib');
CommonLib.functionName();
getElementIndex(element, array);
humanFileSize(bytes,decimals);
makeTwoDigit(number);
convertToIndexArray(hash_array);
getURLParameter(param_name);
getFirstLetter(str);
formatebitrate(bits);
twelve2twentyfour(int);
- Fork the repo.
- Add your functions to the
index.js
file. - Create a pull request with a proper note about the function.