New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

hirestime

Package Overview
Dependencies
Maintainers
1
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hirestime - npm Package Compare versions

Comparing version 0.2.0 to 0.2.1

1

index.js

@@ -20,2 +20,3 @@ var S = 'seconds';

if(unit === NS) time = msTime * 1000;
if(!time) time = msTime;

@@ -22,0 +23,0 @@ return parseInt(time * 100, 10) / 100;

2

package.json
{
"name": "hirestime",
"version": "0.2.0",
"version": "0.2.1",
"description": "thin wrapper around process.hrtime",

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

@@ -58,2 +58,8 @@ var expect = require('chai').expect;

it('should return an approximate number of elapsed time in seconds (unknown unit)', function() {
hrtimeMock(100);
var getElapsed = hirestime();
expect(getElapsed('foo')).to.equal(100);
});
});
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