deviceinfos
v0.0.4
Published
native node module that provide devices infos in different archs[arm7|64/x64]/platforms[android/darwin/windows/linux]
Downloads
3
Readme
deviceinfos
install :
yarn add deviceinfos
native node module that provide devices infos in different archs[arm7|64/x64]/platforms[darwin/windows]
import test from 'ava'
import { realname, username, lang, devicename, hostname, distro, desktopEnv } from '../index.js'
test('realname from native', (t) => {
if(realname()){
t.pass()
}
})
test('username from native', (t) => {
if(username()){
t.pass()
}
})
test('lang from native', (t) => {
if(lang()){
t.pass()
}
})
test('devicename from native', (t) => {
if(devicename()){
t.pass()
}
})
test('hostname from native', (t) => {
if(hostname()){
t.pass()
}
})
test('distro from native', (t) => {
if(distro()){
t.pass()
}
})
test('desktopEnv from native', (t) => {
if(desktopEnv()){
t.pass()
}
})
test('machineid from native', (t) => {
if (machineid()) {
t.pass()
}
})