@writetome51/year-separator-options
v1.0.0
Published
2 interfaces representing settings options and 2 functions that return their default settings
Downloads
10
Readme
SeparatorOptions
A TypeScript interface:{separator?: string, separateEach?: boolean}
YearSeparatorOptions
A TypeScript interface extending SeparatorOptions and adding this:{includeFullYear?: boolean}
getDefaultsFor_SeparatorOptions(): SeparatorOptions
Returns default values of SeparatorOptions.
getDefaultsFor_YearSeparatorOptions(): YearSeparatorOptions
Returns default values of YearSeparatorOptions.
Installation
npm i @writetome51/year-separator-options
Loading
// if using TypeScript:
import {SeparatorOptions, YearSeparatorOptions,
getDefaultsFor_SeparatorOptions, getDefaultsFor_YearSeparatorOptions}
from '@writetome51/year-separator-options';