Get DayJS Version at Runtime
- Dominant language
- JavaScript
- Stars
- 48.7k
- Forks
- 2.5k
- PR merge metrics
- No merged PRs in 30d
Description
When inspecting objects and hitting a `dayjs` instance, its tricky to discern whether its a `dayjs` instance or something else. In `jquery` this is very easy: if the the object has a `jquery` string property thats in the format of n.n.n its a jquery instance.
In addition, I could foresee the need to detect the dayjs version at runtime.
It possible to add a property to the dayjs prototype called `dayjs` and have its value be the current version in `n.n.n` format similar to jquery?
Contributor guide
Research direction
Start by locating the dayjs prototype and the package's version source, then inspect how dayjs instances are constructed. Done means instances expose a runtime property that identifies Day.js and reports the current n.n.n version, with behavior verified by the project's existing tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- api
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100