0.0.4 • Published 6 years ago
rukit-helpers v0.0.4
Installation
Using npm:
$ npm i -g npm
$ npm i git+https://gitlab.dev.my.ua/cores/rukit-helpers#masterMethods
- convertDate - Convert UNIX to default date "DD.MM.YYYY HH:mm";
 - convertToChartData - Valid data for hightchart;
 - dateTypes - Formats for dates;
 - datesArrayToUnix - Convert array dates to UNIX timestamp;
 - formatIn - Format date to format which you transferred, example: 20-03-19;
 - getDaysAgo - Array of dates from date - range to date, example: 01-03-2019, 02-03-2019, 03-03-2019;
 - getDaysAgoRange - Array with two dates, date - range and date, example: 01-03-2019, 01-04-2019;
 - getDaysRange - All dates between 'yyyy-mm-dd', 'yyyy-mm-dd';
 - getDayUnix - Today and tomorrow '11.12.2019 00:00:00' '12.12.2019 00:00:00';
 - getDiffLengthBetweenDays - Length between two dates, example: 29;
 - getNumber - Convert string to number;
 - getMomentDateAgo - Adds and removes dates, months, years;
 - joinClasses - Array or object convert to string;
 - todayDate - Today date;
 - truthyDecorator - Check every function in array return true;