days-until-christmas

    1.1.3 • Public • Published

    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>

    Keywords

    none

    Install

    npm i days-until-christmas

    DownloadsWeekly Downloads

    1

    Version

    1.1.3

    License

    MIT

    Unpacked Size

    3.89 kB

    Total Files

    5

    Last publish

    Collaborators

    • niklasmh