|
|
|
|
|
by scrapheap
1430 days ago
|
|
Honestly, I think you're both wrong. You shouldn't be trying to minimize or maximize your use of dependencies. You should add a dependency when it makes sense and write your own code when it makes sense. Doing more complex time and date work, then a good solid library for manipulating datetime variables will save your sanity. Need to right justify a string to set length then using a leftpad will leave you at the mercy of a random author on npm. |
|
IMO there's a lot to be said for writing your own version that does 60% of what some library does, but 100% of what you need it to do.