Comparing version 5.0.0 to 5.1.0
{ | ||
"name": "time-span", | ||
"version": "5.0.0", | ||
"version": "5.1.0", | ||
"description": "Simplified high resolution timing", | ||
@@ -14,3 +14,7 @@ "license": "MIT", | ||
"type": "module", | ||
"exports": "./index.js", | ||
"exports": { | ||
"types": "./index.d.ts", | ||
"node": "./index.js", | ||
"default": "./browser.js" | ||
}, | ||
"engines": { | ||
@@ -24,2 +28,3 @@ "node": ">=12" | ||
"index.js", | ||
"browser.js", | ||
"index.d.ts" | ||
@@ -26,0 +31,0 @@ ], |
@@ -5,2 +5,4 @@ # time-span | ||
Uses [`process.hrtime`](https://nodejs.org/api/process.html#processhrtimebigint) in Node.js and [`performance.now`](https://developer.mozilla.org/en-US/docs/Web/API/Performance/now) in browsers ([accurate to 5 microseconds](https://developer.mozilla.org/en-US/docs/Web/API/DOMHighResTimeStamp)). | ||
## Install | ||
@@ -7,0 +9,0 @@ |
4336
6
53
53