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

speed-limiter

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

speed-limiter

Throttle the speed of streams

  • 0.1.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
980
decreased by-60.8%
Maintainers
1
Weekly downloads
 
Created
Source

speed-limiter

NPM Version Build Status Standard - Javascript Style Guide

Throttle the speed of streams in NodeJS

Installation

npm install speed-limiter

Usage

const { ThrottleGroup } = require('speed-limiter')

const rate = 200 * 1000 // 200 KB/s
const throttleGroup = new ThrottleGroup({ rate })

API

const throttle = new Throttle()

Initialize the throttle instance.

const throttleGroup = new ThrottleGroup()

Initialize the throttle group.

TODO: add rest of methods

License

MIT. Copyright (c) Alex

Keywords

FAQs

Package last updated on 13 May 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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