New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

tdays

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tdays - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

4

index.js
#!/usr/bin/env node
function tDays () {
var inaguration = new Date(2017, 0, 20)
var inauguration = new Date(2017, 0, 20)
var now = new Date()
return Math.floor((now - inaguration) / (1000 * 60 * 60 * 24)) + 1
return Math.floor((now - inauguration) / (1000 * 60 * 60 * 24)) + 1
}

@@ -8,0 +8,0 @@

{
"name": "tdays",
"version": "2.0.0",
"version": "2.0.1",
"description": "get days since trump was elected",

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

@@ -12,6 +12,6 @@ # t-days

function tDays () {
var inaguration = new Date(2017, 0, 20)
var inauguration = new Date(2017, 0, 20)
var now = new Date()
return Math.floor((now - inaguration) / (1000 * 60 * 60 * 24)) + 1
return Math.floor((now - inauguration) / (1000 * 60 * 60 * 24)) + 1
}
```
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