Below is a generated README.md
file for your package:
Date Helper Package
This package provides utility functions and regular expressions related to handling dates, times, and other common data formats.
Regular Expressions
ISO String
export const ISO_STRING = /[0-9]{4}-((0[13578]|1[02])-(0[1-9]|[12][0-9]|3[01])|(0[469]|11)-(0[1-9]|[12][0-9]|30)|(02)-(0[1-9]|[12][0-9]))T(0[0-9]|1[0-9]|2[0-3]):(0[0-9]|[1-5][0-9]):(0[0-9]|[1-5][0-9])(\.[0-9]{1,})?Z?\+\d{2}:\d{2}/;
This regular expression matches ISO 8601 formatted date and time strings, including timezone offsets.
export const EMAIL = /[\w-.]+@([\w-]+\.)+[\w-]{2,4}$/;
This regular expression matches email addresses.
Name
export const NAME = /.{1,}\s.{1,}/;
This regular expression matches names with at least one character before and after a space.
Telephone Number
export const TEL = /^[08|02][0-9]{8,}$/;
This regular expression matches telephone numbers starting with either '08' or '02' followed by eight or more digits.
Time
export const TIME = /\d{2}:\d{2}/;
This regular expression matches time strings in the format "HH:mm".
ISO Date
export const DATE_ISO = /^\d{4}-\d{2}-\d{2}$/;
This regular expression matches ISO 8601 formatted date strings.
Numeric
export const NUMERIC = /^\d+(\.\d+)*$/;
This regular expression matches numeric values, including integers and floating-point numbers.
Feel free to include additional documentation, usage examples, or installation instructions as needed for your package.