# ember-cli-ahoy

> Ahoy.js shim for Ember

Latest version **0.4.0** (published 2017-05-09) · MIT license · 0 weekly downloads

## Install

```sh
npm install ember-cli-ahoy
pnpm add ember-cli-ahoy
yarn add ember-cli-ahoy
bun add ember-cli-ahoy
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.4.0 |
| Published | 2017-05-09 |
| First published | 2017-02-28 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 4.0.0 |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | MammothHR |
| Maintainers | mammoth-hr |
| Keywords | ember-addon |

## Links

- npm: https://www.npmjs.com/package/ember-cli-ahoy
- Repository: https://github.com/MammothHR/ember-cli-ahoy
- Homepage: https://github.com/MammothHR/ember-cli-ahoy#readme
- Issues: https://github.com/MammothHR/ember-cli-ahoy/issues
- npm.io page: https://npm.io/package/ember-cli-ahoy

## Dependencies (2)

- [ahoy.js](https://npm.io/package/ahoy.js.md) ^0.2.1
- [ember-cli-babel](https://npm.io/package/ember-cli-babel.md) ^6.0.0

## Recent versions

- 0.4.0 (latest) — 2017-05-09
- 0.3.0 — 2017-05-09
- 0.2.0 — 2017-02-28

## README

[![Build Status](https://travis-ci.org/MammothHR/ember-cli-ahoy.svg?branch=master)](https://travis-ci.org/MammothHR/ember-cli-ahoy)

# ember-cli-ahoy

Provides an ES6 module for using [ahoy.js](https://github.com/ankane/ahoy.js).

## Installation

* `ember install ember-cli-ahoy`

## Usage

* Shim

```
import Ahoy from 'ahoy';
```

* As a service

```
import Component from 'ember-component';
import service from 'ember-service/inject';

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

  didInsertElement() {
    this.get('ahoy').trackView({
      url: 'foo-bar'
    });
  }
});
```

## Running Tests

* `npm test` (Runs `ember try:each` to test your addon against multiple Ember versions)
* `ember test`
* `ember test --server`

## Building

* `ember build`

For more information on using ember-cli, visit [https://ember-cli.com/](https://ember-cli.com/).

---
_Source: https://npm.io/package/ember-cli-ahoy · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
