Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@unscsprt/since

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@unscsprt/since

Calculate how long it's been since ___?

latest
Source
npmnpm
Version
0.5.0
Version published
Maintainers
1
Created
Source

since

Since is a CLI that calculates the number of days between today and a certain date, past or future.

Installation

npm install -g @unscsprt/since

Usage

since "<input>" [options]

Supported formats for <input> include:

  • American: MM-DD-YYYY (- or /)
  • Asia, Europe: DD-MM-YYYY (-, /, or .)
  • China, Japan, Iran: YYYY-MM-DD (-, /, or .)

Options

OptionDescription
-w, --weeksShow output in units of weeks
-m, --monthsShow output in units of months
-y, --yearsShow output in units of years
-h, --helpShow help

ToDo

  • Flag to enable output as decimal
  • Add support for more input formats
  • Unit tests
  • Support combined unit flags for more granular output (e.g. -wm => 3 months, 2 weeks)

Change log

  • 0.4.x - Add args to show output as weeks, months, or years
  • 0.3.x - Fixed file permission bug
  • 0.2.x - Now supports future dates
  • 0.1.x - Initial release

FAQs

Package last updated on 07 Aug 2018

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