@mongodb-js/get-os-info
TypeScript icon, indicating that this package has built-in type declarations

0.3.25 • Public • Published

get-os-info

Returns info about the host os

const info = await getOsInfo();

Example output:

{
  os_type: 'Darwin',
  os_version: 'Darwin Kernel Version 21.4.0: Fri Mar 18 00:45:05 PDT 2022; root:xnu-8020.101.4~15/RELEASE_X86_64',
  os_release: '21.4.0',
  os_arch: 'x64',
  // only on linux:
  os_linux_dist: 'ubuntu' ,
  os_linux_release: '20.04',
}

Readme

Keywords

none

Package Sidebar

Install

npm i @mongodb-js/get-os-info

Weekly Downloads

7,586

Version

0.3.25

License

Apache-2.0

Unpacked Size

16.8 kB

Total Files

12

Last publish

Collaborators

  • nirinchev
  • dbx-node
  • nbbeeken
  • orechova
  • himanshusinghs
  • c-buckingham
  • mongo-j
  • mabaasit
  • alexander_schroll
  • mongodb-js-user
  • rueckstiess
  • durran
  • lerouxb
  • fredtruman
  • mbroadst
  • hswolff
  • satyasinha
  • matt_d_rat
  • rhysm
  • tomhollander
  • alena.khineika
  • jeff-allen-mongo
  • mmarcon
  • jonathan.balsano
  • mongodb-build
  • jack.weir
  • mcasimir
  • kristina.stefano
  • jarjee
  • shaketbaby
  • devtoolsbot
  • addaleax
  • gribnoysup
  • mutukrish