npm package: @nuxtjs/guess-module
Description: Guess.js module for Nuxt.js
Latest version: 0.1.3

# guess-module

[![David-DM][david-dm-src]][david-dm-href]
[![Standard JS][standard-js-src]][standard-js-href]
[![Github Actions][github-actions-src]][github-actions-href]
[![Codecov][codecov-src]][codecov-href]
[![npm version][npm-version-src]][npm-version-href]
[![npm downloads][npm-downloads-src]][npm-downloads-href]

> Guess.js module for Nuxt.js

[📖 **Release Notes**](./CHANGELOG.md)

TODO:

* Vue.js support in guess-parser [Tracked Issue](https://github.com/guess-js/guess/issues/43)

## Setup

- Add `@nuxtjs/guess` dependency using yarn or npm to your project
- Add `@nuxtjs/guess` to `modules` section of `nuxt.config.js`
- Config 'options' as `options` of [guess-webpack][guess-webpack-href]
- Note: the default `reportProvider` when there is no `GA` and `reportProvider` specifed is the content of `router.json` under [`rootDir`][nuxt-rootDir-href] or [`srcDir`][nuxt-srcDir-href]

```js
{
  modules: [
    // Simple usage
    '@nuxtjs/guess',

    // With options
    ['@nuxtjs/guess', {
      GA: 'XXXXXX'
    }],
 ]
}
```

## Development

- Clone this repository
- Install dependencies using `yarn install` or `npm install`
- Start development server using `npm run dev`

## Credits

This module is inspired by [guest-nuxt][guess-nuxt-href] by @daliborgogic.

## Links

* [Google I/O announcement][guess-announcement-href] by Addy Osmani
* [Introducing Guess.js - a toolkit for enabling data-driven user-experiences on the Web][guess-intro-href]
* [Using Guess.js with Nuxt.js][use-guess-href]

## License

[MIT License](./LICENSE)

Copyright (c) Clark Du <clark.duxin@gmail.com>

<!-- Badges -->
[david-dm-src]: https://david-dm.org/nuxt-community/guess-module/status.svg?style=flat-square
[david-dm-href]: https://david-dm.org/nuxt-community/guess-module
[standard-js-src]: https://img.shields.io/badge/code_style-standard-brightgreen.svg?style=flat-square
[standard-js-href]: https://standardjs.com
[github-actions-src]: https://github.com/nuxt-community/guess-module/workflows/ci/badge.svg
[github-actions-href]: https://github.com/nuxt-community/guess-module/actions
[codecov-src]: https://img.shields.io/codecov/c/github/nuxt-community/guess-module.svg?style=flat-square
[codecov-href]: https://codecov.io/github/nuxt-community/guess-module
[npm-version-src]: https://img.shields.io/npm/dt/@nuxtjs/guess.svg?style=flat-square
[npm-version-href]: https://npmjs.com/package/@nuxtjs/guess
[npm-downloads-src]: https://img.shields.io/npm/v/@nuxtjs/guess/latest.svg?style=flat-square
[npm-downloads-href]: https://npmjs.com/package/@nuxtjs/guess
[guess-nuxt-href]: https://github.com/daliborgogic/guess-nuxt
[guess-webpack-href]: https://github.com/guess-js/guess/tree/master/packages/guess-webpack/#basic-usage
[nuxt-rootDir-href]: https://nuxtjs.org/api/configuration-rootdir
[nuxt-srcDir-href]: https://nuxtjs.org/api/configuration-srcdir
[use-guess-href]: https://guess-js.github.io/docs/nuxt
[guess-announcement-href]: https://www.youtube.com/watch?time_continue=2093&v=Mv-l3-tJgGk
[guess-intro-href]: https://blog.mgechev.com/2018/05/09/introducing-guess-js-data-driven-user-experiences-web/