bulletproof-nodejs
bulletproof-nodejs copied to clipboard
Where do you add utility functions and constants?
Where do you put files for:
- Utility functions like formatting a date
- Constants
For constants, I generally use the config file. And for utility functions, I usually create a service, or put them in a related service, generally as a static function