Socket
Book a DemoInstallSign in
Socket

days-until-christmas

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

days-until-christmas

I lost the count so I made this to keep myself up-to-date next time

1.1.3
latest
Source
npmnpm
Version published
Weekly downloads
14
180%
Maintainers
1
Weekly downloads
 
Created
Source

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>

FAQs

Package last updated on 08 Dec 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.