Skip to content

ackushiw/nuxtjs-platform

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A nuxt module for browser/platform detection using 'browser-platform'

Resources

License

Stars

Watchers

Forks

Packages

No packages published