nuxt-community / moment-module

Efficient Moment.js integration for Nuxt
MIT License
195 stars 12 forks source link

feat: add default format #86

Closed sneakylenny closed 2 years ago

sneakylenny commented 2 years ago

This PR adds support for the defaultFormat option to be configured in moment.js through the module options. Added appropriate tests which passed on my machine.


Fixes #73 and kept my word https://github.com/nuxt-community/moment-module/issues/73#issuecomment-948666864:

"I may create a PR in the future to add an option like this into the config of this module"

sneakylenny commented 2 years ago

The force push was to change the commit summary/message to a more appropriate message