bare-hrtime
Advanced tools
| declare function hrtime( | ||
| prev?: ArrayLike<number> | ||
| ): [seconds: number, nanoseconds: number] | ||
| declare namespace hrtime { | ||
| export function bigint(): bigint | ||
| } | ||
| export = hrtime |
+1
-1
@@ -5,3 +5,3 @@ const binding = require('./binding') | ||
| module.exports = exports = function hrtime (prev = EMPTY) { | ||
| module.exports = exports = function hrtime(prev = EMPTY) { | ||
| if (prev instanceof Uint32Array === false) prev = Uint32Array.from(prev) | ||
@@ -8,0 +8,0 @@ |
+12
-4
| { | ||
| "name": "bare-hrtime", | ||
| "version": "2.0.10", | ||
| "version": "2.0.11", | ||
| "description": "High-resolution timers for JavaScript", | ||
| "main": "index.js", | ||
| "exports": { | ||
| ".": { | ||
| "types": "./index.d.ts", | ||
| "default": "./index.js" | ||
| }, | ||
| "./package": "./package.json" | ||
| }, | ||
| "files": [ | ||
| "index.js", | ||
| "index.d.ts", | ||
| "binding.c", | ||
@@ -15,3 +22,3 @@ "binding.js", | ||
| "scripts": { | ||
| "test": "standard && bare test.js" | ||
| "test": "prettier . --check && bare test.js" | ||
| }, | ||
@@ -31,4 +38,5 @@ "repository": { | ||
| "cmake-bare": "^1.1.6", | ||
| "standard": "^17.0.0" | ||
| "prettier": "^3.4.2", | ||
| "prettier-config-standard": "^7.0.0" | ||
| } | ||
| } |
+1
-1
@@ -11,3 +11,3 @@ # bare-hrtime | ||
| ``` js | ||
| ```js | ||
| const hrtime = require('bare-hrtime') | ||
@@ -14,0 +14,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
474776
51.91%21
5%18
63.64%4
33.33%