gr-lib-mods
v1.0.15
Published
A package of custom functions used for GR azure scripts
Downloads
23
Keywords
Readme
gr-lib-mods
gr-lib-mods is a module used for GR azure functions
Installation
Use the package manager npm to install gr-lib-mods.
npm install gr-lib-mods
Usage
const grLibMods = require("gr-lib-mods");
Functions
isBusinessDay
// Takes a JS Date input; Returns boolean
var val_isBusinessDay = grLibMods.isBusinessDay(date);
businessDiff
// Takes two JS Date inputs; Returns integer
var val_businessDiff = grLibMods.businessDiff(date1, date2);
businessAdd
// Takes a JS Date input and integer input; Returns JS Date
var val_businessAdd = grLibMods.businessAdd(date, daysToAdd);
get5DigitZip
// Takes a string input; Returns string
var val_get5DigitZip = grLibMods.get5DigitZip(zipcode);
isEmpty
// Takes any input, Returns boolean
var val_isEmpty = grLibMods.isEmpty(anyVariable);
findAllClasses
// Takes a string input; Returns string
var val_findAllClasses = grLibMods.findAllClasses(classValue);
closeOrder
// Takes a string input; Returns string
var val_closeOrder = grLibMods.closeOrder(recordStringified);
resetStatusPendingApp
// Takes a string input; returns string
var val_resetStatusPendingApp = grLibMods.resetStatusPendingApp(recordStringified);
resetStatusPendingApp
// Takes a string input; returns string
var val_resetStatusPendingApp = grLibMods.resetStatusPendingApp(recordStringified);
printWeather
// Takes a string input; returns string
var val_printWeather = grLibMods.printWeather(weatherObjectStringified);
flush_dataToChange
// Takes two object inputs; returns array with 2 data objects
var val_flush_dataToChange = grLibMods.flush_dataToChange(dataObject, recordObject);
saveToWorkingBlob
// Takes two object inputs; returns void
var val_saveToWorkingBlob = grLibMods.saveToWorkingBlob(blobDetailsObject, recordObject);