https://github.com/marmelab/get-current-day
A completely useless NPM package that does one thing: returns todayβs date. Updated daily with a new version. Because why not?
https://github.com/marmelab/get-current-day
Last synced: 2 months ago
JSON representation
A completely useless NPM package that does one thing: returns todayβs date. Updated daily with a new version. Because why not?
- Host: GitHub
- URL: https://github.com/marmelab/get-current-day
- Owner: marmelab
- License: mit
- Created: 2025-03-03T22:00:44.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2025-04-15T00:21:22.000Z (2 months ago)
- Last Synced: 2025-04-15T02:09:18.053Z (2 months ago)
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/get-current-day
- Size: 9.31 MB
- Stars: 8
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# π get-current-day
[](https://www.npmjs.com/package/get-current-day)
A completely useless NPM package that does just one thing: returns today's date.
It gets a **new version every single day**, because... why not? π€·ββοΈ## π Installation
```sh
npm install get-current-day
```## π Usage
```js
import today from 'get-current-day';console.log(today()); // "2025-04-01"
```That's it. Nothing more, nothing less.
## π Automatic Daily Updates
Every day, a GitHub Action publishes a new version of the package to match the current date. If you want to stay up-to-date with **the latest version of today**, just keep updating the package daily:
```sh
npm update get-current-day
```The package version number is the publication date (`YYYY.MM.DD`). This lets you test a prior release or pin down the dependency to a certain date:
```sh
npm install --save-exact [email protected]
```**Tip**: `npm install` uses the `^` version modifier by default, which may jeopardize the reproducibility of your builds. To ensure you install the exact version you require, use the `--save-exact` command line option.
## π Why does this exist?
- Because we can.
- Because daily package updates are fun.
- Because **"what even is time?"**But more seriously:
- **Think Before You Code**: Not every idea, no matter how clever, is worth implementing.
- **Sustainability Matters**: Every line of code has an environmental impact. As developers, we must be mindful of our carbon footprint.
- **Choose Your Libraries Wisely**: Not all libraries are created equal. Some may seem useful but can introduce unnecessary complexity or even be outright harmful.## π€ Contributing
Feel free to open an issue or a pull request... but honestly, there's nothing to improve here. π
## π License
MIT License. Use it however you like, but don't expect it to be useful.
## π§βπ» Authors
- [Anthony RIMET](https://github.com/arimet)
- [Julien Mattuissi](https://github.com/JulienMattiussi)