This repository contains various utilities for prototypes.
$ npm install https://github.com/duetds/proto-utils#semver:v1.2.0
Compatibility: This package supports both CommonJS and ES modules, making it compatible with older and newer projects.
currencyformats numbers as currency string according to Finnish standarddateISOobeject with three memberstoday,tomorrowandyesterday- ISO string datesISO2Localconverts ISO date to Finnish locale dateISO2LocalRangegiven object withstartDateandendDateas ISO strings returns date range with Finnish locale datesISO2LocalShortDayISO2LocalShortMonthaddDaysToDatecurrentdate2ISOdate2Localdate2LocalShortDaydate2LocalShortMonthdateFromTodaydayInMSisISOlocal2ISOstring2ISOstring2Localtodaytomorrowyesterday
downloadFiletriggers a file downloadidgenerates an id that is locally unique enough (up to 2^52 ids per ms)queryParamrndgenerates a random integer in given rangesampleDatasetgetclear
stepperPaginatorstoresetgetdel
str.dobFromSsnstr.ucFirstthemeSwitchvalidatorisValidEmailisValidPhoneNumberisValidFinnishSSNisValidBusinessIdisValidDate
When making changes update the version in package.json, this README in Install section, and make a new release tag in GitHub.