Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

speedometer

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

speedometer - npm Package Compare versions

Comparing version 1.0.0 to 1.1.0

8

index.js
var tick = 1
var maxTick = 65535
var resolution = 4
var timer
var inc = function () {

@@ -8,6 +9,9 @@ tick = (tick + 1) & maxTick

var timer = setInterval(inc, (1000 / resolution) | 0)
if (timer.unref) timer.unref()
module.exports = function (seconds) {
if (!timer) {
timer = setInterval(inc, (1000 / resolution) | 0)
if (timer.unref) timer.unref()
}
var size = resolution * (seconds || 5)

@@ -14,0 +18,0 @@ var buffer = [0]

{
"name": "speedometer",
"version": "1.0.0",
"version": "1.1.0",
"repository": "git://github.com/mafintosh/speedometer",

@@ -5,0 +5,0 @@ "description": "simple speed measurement in javascript",

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