npm stats
  • Search
  • About
  • Repo
  • Sponsor
  • more
    • Search
    • About
    • Repo
    • Sponsor

Made by Antonio Ramirez

network-type

1.0.0

@hemanth

npmHomeRepoSnykSocket
Downloads:3
$ npm install network-type
DailyWeeklyMonthlyYearly

network-type

Get the network type.

Install

$ npm install --save network-type

Usage

const networkType = require('network-type');

networkType();
//=> { type: 'UMTS', version: '3G', downlinkMax: '2' }

Type would be on of the:

  • bluetooth

  • cellular

  • ethernet

  • none

  • wifi

  • wimax

  • other

  • unknown

License

MIT © Hemanth.HM