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.1.2 to 0.1.3

6

instadate.js

@@ -119,6 +119,10 @@ var difference = require('lodash.difference');

dateString: function(date) {
dateString: function (date) {
return date.toString().slice(0, 15);
},
isoDateString: function (date) {
return date.toISOString().slice(0, 10);
},
firstDateInMonth: function (d) {

@@ -125,0 +129,0 @@ var date = new Date(d);

2

package.json
{
"name": "instadate",
"version": "0.1.2",
"version": "0.1.3",
"description": "",

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

@@ -438,2 +438,8 @@ var test = require('tape');

t.end();
})
});
test('isoDateString', function (t) {
var d = new Date('Mon Jan 18 2016 13:07:17 GMT+0200 (EET)');
t.equal(instadate.isoDateString(d), '2016-01-18');
t.end();
});
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