mini-speed-chart

1.0.2 • Public • Published

mini-speed-chart

Detect connection speed with JavaScript

Install

Install with npm

$ npm install mini-speed-chart

Or install with yarn

$ yarn add mini-speed-chart
import MiniSpeedChart from 'mini-speed-chart';

Or umd builds are also available

<script src="path/to/miniSpeedChart.js"></script>

Will expose the global variable to window.MiniSpeedChart.

Usage

// Init
var chart = new MiniSpeedChart({
  canvas: '',
  url: '',
  width: 180,
  height: 20,
  size: 2,
  backgroundColor: '#000',
  lineColor: '#4f0',
  detectCallback: result => result
});

// Destroy
chart.destroy();

License

MIT © Harvey Zack

Readme

Keywords

none

Package Sidebar

Install

npm i mini-speed-chart

Weekly Downloads

5

Version

1.0.2

License

MIT

Unpacked Size

44.2 kB

Total Files

11

Last publish

Collaborators

  • zhw2590582