0.0.4 • Published 2 years ago

deviceinfos v0.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

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()
    }
})