Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

mondays

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mondays

A utility library to cope with Mondays

  • 2.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Mondays

Mondays is a utility library to cope with Mondays.
Mondays could be hard, this library should ease your way with them.

Build Status npm version Dependency status codecov

Getting started

Install the library with npm

> npm install mondays

and import it in your js

var mondays = require("mondays");

Docs

Every method defaults to the current date if no argument is provided

mondays.isMonday

Returns a boolean stating if the date provided is a Monday

mondays.isMonday(date);

mondays.getNextMonday

Returns a Date object representing the next Mondaym relative to the date provided

mondays.getNextMonday(date);

mondays.getPrevMonday

Returns a Date object representing the previous Monday, relative to the date provided

mondays.getPrevMonday(date);

mondays.daysUntilMonday

Returns the number of days until the next Monday, relative to the date provided

mondays.daysUntilMonday(date);

mondays.daysSinceMonday

Returns the number of days since last Monday, relative to the date provided

mondays.daysSinceMonday(date);

Changelog

v2.0.0

  • upgraded node version (10+)

v1.0.1

  • updated dependencies

v1.0.0

  • Basic functionality

Keywords

FAQs

Package last updated on 09 Jul 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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc