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 1.0.1 to 2.0.0

4

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

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

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

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

# t-days
get days since Trump was elected
![](https://img.shields.io/npm/v/tdays.svg)
![](https://img.shields.io/npm/dt/tdays.svg)
get number of days of Trump presidency
## about
📆 get "Trump day x"
## source
```js
function tDays () {
var election = new Date(2016, 10, 8)
var inaguration = new Date(2017, 0, 20)
var now = new Date()
return Math.floor((now - election) / (1000 * 60 * 60 * 24))
return Math.floor((now - inaguration) / (1000 * 60 * 60 * 24)) + 1
}
```

@@ -1,6 +0,13 @@

var test = require('tape')
const test = require('tape')
const tdays = require('./')
test('test rig', function(t) {
t.plan(1)
t.equal(1,1)
test('module', function(t) {
t.plan(2)
t.true(tdays instanceof Function)
t.equal(typeof tdays, 'function')
})
test('result', function(t) {
t.plan(1)
t.equal(typeof tdays(), 'number')
})
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