A Node project designed to support native JavaScript-like features for Nepali date and times. It includes features such as 'NepaliDate' for Nepali date support and 'dateConverter' for date conversions.
GNU General Public License v3.0
63
stars
18
forks
source link
Refactor Current Formatting Method for Improved Performance and Readability #43
The current formatting code in format.ts is not easily readable and poses challenges for enhancement. The reason behind this issue is the utilization of a legacy formatting code from the nepali-date repository. While some parts of the code have already been refactored, further improvements are necessary to enhance its performance.
Furthermore, for escaping characters, let's replace the double quote " with brackets [] to achieve consistency with moment.js and day.js.
The current formatting code in
format.ts
is not easily readable and poses challenges for enhancement. The reason behind this issue is the utilization of a legacy formatting code from thenepali-date
repository. While some parts of the code have already been refactored, further improvements are necessary to enhance its performance.Furthermore, for escaping characters, let's replace the double quote " with brackets [] to achieve consistency with
moment.js
andday.js
.