days-until-christmas
v1.1.3
Published
I lost the count so I made this to keep myself up-to-date next time
Downloads
9
Readme
Days Until Christmas
This package keeps track of days until the 24th of December.
Try it out here!
Install
npm i --save days-until-christmas
# OR
yarn add days-until-christmas
Usage
There are four ways to use this package:
Through the command-line
npx days-until-christmas # Can be used without installation
# OR
days-until-christmas # Requires a global installation of the package
# E.g: `npm i -g days-until-christmas` OR `yarn add global days-until-christmas`
In Node.js
const daysUntilChristmas = require("days-until-christmas");
console.log(daysUntilChristmas());
In a create-react-app
import daysUntilChristmas from "days-until-christmas";
console.log(daysUntilChristmas());
In any browser
<script type="module">
import daysUntilChristmas from "https://cdn.jsdelivr.net/npm/days-until-christmas@latest/index.mjs";
console.log(daysUntilChristmas());
</script>