New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

ember-lifi

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ember-lifi

Service for detecting internet connection status

  • 0.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

ember-lifi Build Status Ember Observer Score Code Climate

A small service for detecting internet connection

Installation

ember install ember-lifi

Usage

Basic

import { inject as service } from '@ember/service';
import { reads } from '@ember/object/computed';

export default Component.extend({
  lifi: service(),
  isOnline: reads('lifi.isOnline')
});

Events

import { inject as service } from '@ember/service';

export default Component.extend({
  lifi: service(),

  didInsertElement() {
    this._super(...arguments);

    this.get('lifi').on('offline', () => {
      alert('The end is nigh!');
    });

    this.get('lifi').on('online', () => {
      alert('False alarm');
    });
  }
});

Contributing

Installation

  • git clone <repository-url>
  • cd ember-lifi
  • nvm use
  • yarn

Linting

  • npm run lint:js
  • npm run lint:js -- --fix

Running tests

  • ember test – Runs the test suite on the current Ember version
  • ember test --server – Runs the test suite in "watch mode"
  • npm test – Runs ember try:each to test your addon against multiple Ember versions

Running the dummy application

For more information on using ember-cli, visit https://ember-cli.com/.

License

This project is licensed under the MIT License.

Keywords

FAQs

Package last updated on 20 Feb 2018

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