Comparing version 0.1.0 to 0.2.0
@@ -5,3 +5,3 @@ { | ||
"description": "Returns a timestamp using Performance.now or Date.now", | ||
"version": "0.1.0", | ||
"version": "0.2.0", | ||
"keywords": ["date", "timestamp", "now", "current", "time"], | ||
@@ -8,0 +8,0 @@ "dependencies": {}, |
'use strict'; | ||
module.exports = (function() { | ||
var perf = window.performance; | ||
var perf = window && window.performance; | ||
if (perf && perf.now) { | ||
@@ -6,0 +6,0 @@ return perf.now.bind(perf); |
{ | ||
"name": "time-now", | ||
"version": "0.1.0", | ||
"version": "0.2.0", | ||
"description": "Returns a timestamp using Performance.now or Date.now", | ||
@@ -10,3 +10,11 @@ "main": "index.js", | ||
}, | ||
"keywords": [ "date", "time", "now", "performance" ], | ||
"scripts": { | ||
"test": "node ./node_modules/testling/bin/cmd.js" | ||
}, | ||
"keywords": [ | ||
"date", | ||
"time", | ||
"now", | ||
"performance" | ||
], | ||
"author": "kewah", | ||
@@ -17,3 +25,20 @@ "license": "MIT", | ||
}, | ||
"homepage": "https://github.com/nk-components/time-now" | ||
"homepage": "https://github.com/nk-components/time-now", | ||
"devDependencies": { | ||
"tape": "~2.3.2", | ||
"testling": "~1.5.6" | ||
}, | ||
"testling": { | ||
"files": "tests/*.js", | ||
"browsers": [ | ||
"ie/6..latest", | ||
"chrome/28..latest", | ||
"firefox/22..latest", | ||
"safari/latest", | ||
"opera/11.0..latest", | ||
"iphone/6", | ||
"ipad/6", | ||
"android-browser/4.2" | ||
] | ||
} | ||
} |
[![browser support](https://ci.testling.com/nk-components/time-now.png)](https://ci.testling.com/nk-components/time-now) | ||
# time-now | ||
@@ -8,2 +10,4 @@ | ||
$ npm install time-now | ||
Install with [component(1)](http://component.io): | ||
@@ -10,0 +14,0 @@ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2725
8
36
24
2