various-devices
v1.0.1
Published
This is a cross-platform open source library for obtaining device name and device model.
Downloads
3
Maintainers
Readme
various-devices
This is a cross-platform open source library for obtaining device name and device model.
Installation
npm install various-devices
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