1.0.2 • Published 6 years ago

nuxtjs-platform v1.0.2

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

nuxtjs-platform

npm (scoped with tag) npm CircleCI Codecov Dependencies js-standard-style

browser/platform detection using 'browser-platform'

📖 Release Notes

Features

The module features

Setup

  • Add nuxtjs-platform dependency using yarn or npm to your project
  • Add nuxtjs-platform to modules section of nuxt.config.js
{
  modules: [
    // Usage
    'nuxtjs-platform',
 ]
}

Usage

This uses https://www.npmjs.com/package/browser-platform and adds css classes to the <html> The platform object is accessed with $root.$platform

Development

  • Clone this repository
  • Install dependnecies using yarn install or npm install
  • Start development server using npm run dev

License

MIT License

Copyright (c) Alexander Kushi-Willis ackw.kushi@gmail.com