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 0.1.0 to 0.1.1

2

index.js
module.exports = function(seconds) {
seconds = seconds || 5;
seconds = seconds || 10;
var transfers = [{time:Date.now(), transferred:0},{time:Date.now(), transferred:0}];

@@ -4,0 +4,0 @@ var tail = transfers[1];

{
"name": "speedometer",
"version": "0.1.0",
"version": "0.1.1",
"repository": "git://github.com/mafintosh/speedometer",

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

@@ -24,7 +24,7 @@ # speedometer

Per default `speedometer` uses a 5 second buffer.
Per default `speedometer` uses a 10 second buffer.
To change this simply pass another value to the constructor
``` js
var speed = speedometer(10); // uses a 10s buffer instead
var speed = speedometer(20); // uses a 20s buffer instead
```

@@ -34,2 +34,2 @@

MIT
MIT
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