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

instadate

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

instadate - npm Package Compare versions

Comparing version 0.2.0 to 0.3.0

12

instadate.js

@@ -63,2 +63,14 @@ var difference = require('lodash.difference');

addYears: function (d, years) {
var date = new Date(d);
date.setFullYear(date.getFullYear() + years);
return date;
},
addMonths: function (d, months) {
var date = new Date(d);
date.setMonth(date.getMonth() + months);
return date;
},
addDays: function (d, days) {

@@ -65,0 +77,0 @@ return instadate.addMilliseconds(d, days * constants.MS_IN_DAY);

2

package.json
{
"name": "instadate",
"version": "0.2.0",
"version": "0.3.0",
"description": "A minimal high performance date library for Node.js and Browser",

@@ -5,0 +5,0 @@ "main": "instadate.js",

@@ -69,2 +69,10 @@ # Instadate [![Build Status](https://travis-ci.org/Teamweek/instadate.svg?branch=master)](https://travis-ci.org/Teamweek/instadate)

**`addYears(date, years)`**
Returns a cloned date with years added to it, use negative input for subtraction.
**`addMonths(date, months)`**
Returns a cloned date with months added to it, use negative input for subtraction.
**`addDays(date, days)`**

@@ -71,0 +79,0 @@

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