Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

time-ago

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

time-ago - npm Package Compare versions

Comparing version
0.2.0
to
0.2.1
+1
-1
package.json

@@ -20,3 +20,3 @@ {

},
"version": "0.2.0"
"version": "0.2.1"
}

@@ -7,4 +7,4 @@ timeago

````
var ta = require('./time-ago.js')(); // node.js
var ta = timeago(); // browser
var ta = require('./time-ago.js') // node.js
var ta = timeago(); // browser
````

@@ -11,0 +11,0 @@

@@ -1,7 +0,3 @@

"use strict";
var ta = require('./timeago.js')
var ta = (typeof module !== 'undefined' && module.exports) ?
require('./timeago.js')() : timeago();
console.log(

@@ -8,0 +4,0 @@ ta.ago(new Date() - 1000), ta.ago(new Date() - 1000) === '1 second ago',