Skip to content

This is a cross-platform open source library for obtaining device name and device model.

License

Notifications You must be signed in to change notification settings

message163/various-devices

Repository files navigation

various-devices

This is a cross-platform open source library for obtaining device name and device model.

Installation

npm install various-devices

CDN

<script src='https://unpkg.com/various-devices/dist/various-devices.iife.js'></script>

It will be exposed to global as variousDevices

usage

Get the current environment

cjs

const { getEnv } = require('various-devices');

esm

import { getEnv } from 'various-devices';

Return value

params introduce
electron 桌面程序
browser 浏览器
node node环境
webworker webworker

more

For more APIs, please refer to the

documentation

About

This is a cross-platform open source library for obtaining device name and device model.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published