1.1.8 • Published 11 months ago

next-ultra v1.1.8

Weekly downloads
-
License
MIT
Repository
-
Last release
11 months ago

next-ultra

Ultra pack utils for next.js by RedProject

NPM JavaScript Style Guide

Install

npm install --save next-ultra

Usage

###isMobileDevice (server)

Check is mobile device from user agent return Promiseboolean

import {isMobileDevice} from "next-ultra/utils"

export default async function Page() {
	const isMobile = isMobileDevice()

	return isMobile ? <div>Device is mobile</div> : <div>Device is PC</div>
}

License

MIT © RedProjectDev

1.1.8

11 months ago

1.1.7

11 months ago

1.1.6

11 months ago

1.1.5

11 months ago

1.1.4

11 months ago

1.1.3

1 year ago

1.1.2

1 year ago

1.1.1

1 year ago

1.1.0

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago