Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jorgecasar/network-information

Implements Network Information API, which enables web applications to access information about the network connection in use by the device.
https://github.com/jorgecasar/network-information

Last synced: 1 day ago
JSON representation

Implements Network Information API, which enables web applications to access information about the network connection in use by the device.

Awesome Lists containing this project

README

        

[![Published on webcomponents.org](https://img.shields.io/badge/webcomponents.org-published-blue.svg)](https://www.webcomponents.org/element/jorgecasar/network-information)

# \

Implements Network Information API, which enables web applications to access information about the network connection in use by the device.

## Installation

First, make sure you have the [Polymer CLI](https://www.npmjs.com/package/polymer-cli) installed. Then run `polymer serve` to serve your element locally.

## Viewing Your Element

```
$ polymer serve
```

## Running Tests

```
$ polymer test
```

Your application is already set up to be tested via [web-component-tester](https://github.com/Polymer/web-component-tester). Run `polymer test` to run your application's test suite locally.

## Usage

```html





  • API supported: [[apiSupported]]

  • OnLine: [[onLine]]

  • Type: [[type]]

  • Efective type: [[effectiveType]]

  • Downlink Max: [[downlinkMax]]

  • Downlink: [[downlink]]

  • Rtt: [[rtt]]


```

## Contributing

1. Fork it!
2. Create your feature branch: `git checkout -b my-new-feature`
3. Commit your changes: `git commit -am 'Add some feature'`
4. Push to the branch: `git push origin my-new-feature`
5. Submit a pull request :D

## Credits

Spec. [Network Information API](https://wicg.github.io/netinfo/).

## License

MIT is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT).