Socket
Book a DemoInstallSign in
Socket

network-emulation-conditions

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

network-emulation-conditions

Network emulation conditions

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

network-emulation-conditions

Settings for network emulation conditions (e.g Regular 3G, 2G, WiFi, DSL, GPRS and so on). Useful for anyone building web performance tooling.

Install

$ npm install --save network-emulation-conditions

Usage

const conditions = require('network-emulation-conditions');

console.log(conditions.REGULAR_3G);
//=>
{ title: 'Regular 3G',
  download: 96000,
  upload: 32000,
  latency: 100 }

These correlate to download throughput, upload throughput and network latency. REGULAR_3G for example is calculated as 750 * 1024 / 8 (750kbps download), 250 * 1024 / 8 (250kbps upload) and 100ms latency.

Available conditions

  • GPRS
  • REGULAR_2G
  • GOOD_2G
  • REGULAR_3G
  • GOOD_3G
  • REGULAR_4G
  • DSL
  • WIFI

These network emulation conditions match those used in the Chrome Developer Tools:

License

Apache-2.0 © Google Inc.

Keywords

network

FAQs

Package last updated on 30 Oct 2016

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