myua-helpers

0.0.2 • Public • Published

Installation

Using npm:

$ npm i -g npm
$ npm i myua-helpers

Methods

  • convertDate - Convert UNIX to default date "DD.MM.YYYY HH:mm";
  • 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];
  • getDiffLengthBetweenDays - Length between two dates, example: 29;
  • getNumber - Convert string to number;
  • joinClasses - Array or object convert to string;
  • truthyDecorator - Check every function in array return true;

Readme

Keywords

none

Package Sidebar

Install

npm i myua-helpers

Weekly Downloads

1

Version

0.0.2

License

ISC

Unpacked Size

14.5 kB

Total Files

22

Last publish

Collaborators

  • myua